A Microsoft Office (Excel, Word) forum. OfficeFrustration

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.

Go Back   Home » OfficeFrustration forum » Microsoft Powerpoint, Publisher and Visio » Visio
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Identify and change the shape icon



 
 
Thread Tools Display Modes
  #1  
Old October 5th, 2008, 06:02 PM posted to microsoft.public.visio.general
Ferro Francesco
external usenet poster
 
Posts: 7
Default 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  
Old October 6th, 2008, 09:42 AM posted to microsoft.public.visio.general
Paul Herber
external usenet poster
 
Posts: 1,732
Default 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

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 09:18 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.