If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
Identify and change the shape icon
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 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, |
#2
|
|||
|
|||
Identify and change the shape icon
On Sun, 5 Oct 2008 10:02:19 -0700 (PDT), Ferro Francesco
wrote: 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 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 -- Regards, Paul Herber, Sandrila Ltd. http://www.electronics-packages.sandrila.co.uk/ |
Thread Tools | |
Display Modes | |
|
|