Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Adding two images in the node (Read 1310 times)
anurodhora
Full Member
***
Offline


I love YaBB 1G - SP1!

Posts: 103
Joined: Jan 19th, 2009
Adding two images in the node
Jun 4th, 2009 at 6:33am
Print Post  
Hi,

Could you tell me:

1) How can we add two images on a rectangular shaped node. One image should be at left of the node and second should be at right. the image location will come at runtime.

2) And we want to get image click event for this two node images.

Thanks,
Anurodh
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Adding two images in the node
Reply #1 - Jun 4th, 2009 at 9:14am
Print Post  
You could inherit from ShapeNode and override its Draw method to draw the second image, or set CustomDraw = Additional and draw it from the DrawNode event handler. In NodeClicked call imageRect.Contains(e.MousePosition) to detect if an image has been clicked.

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint