Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Mouse Click Event in a Node (Read 1814 times)
Al Caughran
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 3
Joined: Jul 30th, 2012
Mouse Click Event in a Node
Aug 3rd, 2012 at 1:57pm
Print Post  
Hi, I have inherited a project that used version 5.1.0.19142 and no longer have the install for that version, so I have upgraded to the 5.8.0.18793 version.

Using the earlier version we had buttons displayed on our derived TableNode class and handled the clicking of these button through the ModifyBehavior StartDraw function.  This function still gets called using the new version but only when the TableNode is being dragged.  It is no longer called when the user clicks on one of the displayed buttons. 

What do I need to hook into to get this to work again?  Is there a mouse click event of a TableNode?

Thanks for your support.
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Mouse Click Event in a Node
Reply #1 - Aug 3rd, 2012 at 2:10pm
Print Post  
Hi,

There is the NodeClicked event raised when you click a table. StartDraw is now called after the first mouse-move after the button is pressed. If you prefer to continue using your custom behavior class to detect clicks, move your code from StartDraw to BehaviorBase.OnMouseDown override.

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