Visio add-in property panel

C

carlberg

Hi there,

I'm thinking of developing a Visio add-in (VSTO) and was wondering how to
make a shape specific property panel?

(Like database stencil shapes (table or view properties) in Visio 2007)

Not talking about custom-properties, where you can set strings/datatime
properties to a shape.

No, I want to create more complex data attached to my shape.

My guess is that this is a activex (usercontrol) that are assign to a
specific shape, but how do I assign this activex-panel to the shape/stencil?

Can someone give me a hint that this property-panel is called when
developing, and maybe point me to any documentation or sample of this. Have
looked thru MS documentation, but not found anything about this.


Just to be clear what I am talking about.. (see image)
http://213.113.127.73/visio.jpg


Cheers

- Anders
 
J

Jonathan Spane

I have been writing my add-on in C++. You have the arsenal of the Window's
API at your command. The add-on I am working on reads custom XML that ,
generates custom properties dynamically, generates custom error dialogs, and
custom Visio Events. However, the future version I will go with my own
properties dialog too so I can have more fancy widgets. If I were you,
design your application as if it was a Window's Application first and then
work Visio into it. You are looking at some MVC pattern. Since you are
maintaining your own data structures, you will have to hook into Visio
events so if shape is selected the correct data structure is read and dialog
renders correctly. If a shape is copied you will have copy the data
structure. The user may want to change the "properties" differently from one
shape to another even though it came from same master shape. It is a big
task to not use the Custom Properties in Visio as the first version because
you get some of the mundane tasks done. I know I haven't helped but there is
no golden answer to your question. I have been doing Visio coding for only
about 6 weeks so I wouldn't call myself an expert.

JP
 
C

carlberg

Thank you!
This was exactly what I needed!
Now I know what it's called, and I have even got a small application running.

Just having some small problems with the Anchor Bar Window,
It don't seem to update/repaint correctly.
And it dont matter if I update/repaint my form, so it must be the
Visio.Window that needs update some how.. (reading api doc..)

Thanks again!

Cheers
- Anders
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top