Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Node MouseOver Event? (Read 2737 times)
KillaChris
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 18
Joined: Apr 25th, 2012
Node MouseOver Event?
Aug 2nd, 2012 at 8:02am
Print Post  
Hello,
in my diagram i have some Nodes at the top, let's say like a Legend. 4 or 5 Nodes in different Color, so the user knows, what each Color means.

Now it would be great if the user moves the Mouse over such a Legend-Node, that every Node this Legend points to would be highlighted.

For this feature I'm looking for some Event like diagram.mouseover or mousemove or so. But it seems that there doesn't exist anything, which i can use.

I as well tried a little workaround, with using the diagramview.mousemove event and then passing the e.X and e.Y as PointF to diagram.GetItemAt. And if the id = Legend then highlight the Nodes the Legend points to.
At first this worked great, but if i call the diagramview.zoomin or zoomout the e.X and e.Y Values aren't correct anymore, so the GetItemAt gets me wrong Nodes.

I hope that there is something that i can use for my project.
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Node MouseOver Event?
Reply #1 - Aug 2nd, 2012 at 10:52am
Print Post  
Hi,

You could handle the NodePointed event. If using MouseMove, you should call Diagramview.ClientToDoc() to get the diagram coordinates of the mouse position, and then pass the diagram point to GetItemAt.

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
KillaChris
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 18
Joined: Apr 25th, 2012
Re: Node MouseOver Event?
Reply #2 - Aug 2nd, 2012 at 11:43am
Print Post  
Thank you Smiley
The ClientToDoc Function solved the problem Smiley
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint