Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Attaching a notification icon to a shapeNode (Read 1480 times)
solisgsandc
YaBB Newbies
*
Offline



Posts: 40
Joined: Dec 18th, 2009
Attaching a notification icon to a shapeNode
Feb 11th, 2010 at 4:59pm
Print Post  
Is there a property that I can set on the shapeNode to have an icon associated with it?
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Attaching a notification icon to a shapeNode
Reply #1 - Feb 11th, 2010 at 7:19pm
Print Post  
Yes, set the node's Image property.
  
Back to top
 
IP Logged
 
solisgsandc
YaBB Newbies
*
Offline



Posts: 40
Joined: Dec 18th, 2009
Re: Attaching a notification icon to a shapeNode
Reply #2 - Feb 11th, 2010 at 7:49pm
Print Post  
If the node uses an image already then my other solution would be to attach an icon image to the node. Is this the next best thing?
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Attaching a notification icon to a shapeNode
Reply #3 - Feb 11th, 2010 at 9:50pm
Print Post  
This will work, but a more lightweight solution is to set node.CustomDraw = Additional and call e.Graphics.DrawImage(icon) from the DrawNode handler. Or if you are using a derived class, override the node class Draw method to do the same.
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint