User defined values

S

Shawn Xiong

I have defined several user defined variables for a shape.
I want the shape to have the following double-click behavior:

When the shape is double-clicked, a dialog will appear with a list of the
user-defined values(showing name and value). The user can modify the values
and dismiss the dialog. The shape will then take the modified values for the
user-defined values. In another word, I want to have a window which allows
the user to view and modify user-defined values. In this way, the user does
not need to dive into the ShapeSheet to change the user-defined values.

My question is how can I achieve this?

Thanks a bunch,

Sean
 
C

Chris [Visio MVP]

Get one of the shapes from the Flowchart stencils and have a look at it's
ShapeSheet (Window > Show ShapeSheet)

The user-defined values are called Custom Properties.

Right-click menu behaviors are in the Actions section.

Note, that when you right-click a shape, there is a "Properties" item at the
bottom. This was added by the shape designer, in the ShapeSheet, and is
exactly what you need to do.

Just copy the Actions section, which has an action formula of "DOCMD(1312)",
which will show the properties dialog for the shape.

Good luck!
 

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