Identify and change the shape icon

  • Thread starter Ferro Francesco
  • Start date
F

Ferro Francesco

Hi,

I have a little question about shape manipulation.

Here a Visio Addin Example:

I have droped some shape (for example this shape are "user" )on my
Page and these Shape are all identified by their unique EMAIL.

In a EventHandler I capture an event that says the shape of the user
(e-mail address removed) must change...

So my question is:

How i can create my Own shape propertie (for the user email) ?
How i can next, identify THIS shape, and change his icon (or change
his color or something else..)

Regards,
 
P

Paul Herber

Hi,

I have a little question about shape manipulation.

Here a Visio Addin Example:

I have droped some shape (for example this shape are "user" )on my
Page and these Shape are all identified by their unique EMAIL.

In a EventHandler I capture an event that says the shape of the user
(e-mail address removed) must change...

So my question is:

How i can create my Own shape propertie (for the user email) ?
How i can next, identify THIS shape, and change his icon (or change
his color or something else..)

You can store the user's email address in one (or more) or several
parts of the shape, its text, custom properties or user-defined data.

I assume that when your eveny occurs then you will want to find the
shape containing this email address, I suppose the easiest way is just
to iterate through the shapes on the page and compare the email
address with the appropriate shape cell. A more complicated, but
probably completely OTT would be to have a database connecting the
shape and email address .. but I digress.
Changing the shape's colour is then easy. Shapes don't have icons, the
shape of a shape is just that.

For how to loop through, use custom properties and change a shape's
colour have a look at John Marshall's VBA page at

http://visio.mvps.org/VBA.htm
 

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