Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Mouse move/hover events (Read 2350 times)
Bob_HL
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 2
Joined: Sep 8th, 2011
Mouse move/hover events
Sep 8th, 2011 at 11:11pm
Print Post  
In Diagram Events, I couldn't see any events about mouse move. Can you implement something like doing something when mouse is pointing to a node/link?
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Mouse move/hover events
Reply #1 - Sep 9th, 2011 at 6:17am
Print Post  
We can add some hover events for the next release. Now you can handle the MouseMove event raised by the base Control class to find the node under the mouse pointer:

Code
Select All
var mousePos = e.GetPosition(diagram.DocumentPlane);
var node = diagram.GetNodeAt(mousePos); 



If you only need to change the appearance of a node when the mouse is over it, you can use a style that defines setters for the MouseOver state inside a MouseStates VisualStateGroup. There is a sample style defining selection states at the end of this topic, the ones for the mouse should look similar:
http://mindfusion.eu/onlinehelp/diagramlite/index.htm?Styles_and_Control_Templat...

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