ThinkGeo.com    |     Documentation    |     Premium Support

MouseHover event

A few questions about the MouseHover event:


1. I'm hooking the event and receive it, but if I start moving the mouse and hover over another point, I don't get the event again.  If I move the mouse outside the map control then reenter the control and hover, I get another MouseHover event.  It seems like moving the mouse to another point and hovering should send another hover event without having to leave the control.


2. I could not find a way to set the time before the mouse hover event is raised.  Currently, it's very fast.  Many of the standard controls that support a MouseHover event also have a MouseHoverTime property that allows you to customize the time the user has to hover before the MouseHover event is fired.  Is there a way to do this in MapSuite that I'm missing?


 


Thanks,


Chris


 



Chris, 
  
 If I understand right, what you are trying to achieve is the Tooltip functionality just like the MapSuite2.x. Following post shows you good samples both in WInforms and Wpf Map Control. 
  
 Let me know if any more questions. 
  
 Thanks. 
  
 Yale 


Well, you didn't attach any links.


But I did search the forums before posting my question, so I've probably seen the links you would have posted.  My code is essentially the same.


My problem is that the MouseHover event is not being fired after moving the mouse and stopping again.  


 


Chris



Chris,


I am sorry for missing the links
gis.thinkgeo.com/Support/Dis...fault.aspx
gis.thinkgeo.com/Support/Dis...fault.aspx
 
So your problem is in the sample provided in above posts, the MouseHover event will not fire again if we mouse hover on the map the second time? Sorry for my bad understanding.
 
Any more questions just feel free to let me know.
 
Thanks.
 
Yale

That is correct, the MouseHover event does not fire again until I move the mouse out of the control and back in.


Also, I'd like to be able to change the time that the mouse has to remain stationary before the MouseHover event fires (i.e., a MouseHoverTime property such as exists in many of the common Windows controls).


I've done mouse hover tooltips in the past using a timer, so it's no big deal if this isn't going to work with the MouseHover event from the map.  I just thought I'd use it since it was there.


Chris


 



Chris, 
  
 Thanks for your post and letting us know your status. 
  
 The MapControl did not have its own MouseHover event, and it shared the MouseHover event with UserControl.  
  
 I tested against a pure UserControl, it has the same result. 
  
 Any more qeustions just feel free to let me know. 
  
 Thanks. 
  
 Yale 


Ah, OK.


I suppose that makes sense.  I think that the MouseHover event is meant to display a helpful tip for the entire control one time when the user hovers over a control...but you wouldn't want to keep displaying the tip every time the mouse moved and stopped.


Hovering over a map is a different thing so it'll have to be done manually, which is easy enough.


 


Thanks,


Chris


 


 



Chris, 
  
 Thanks for letting me know your idea and status. 
  
 Any more quesitons just feel free to let me know. 
  
 Thanks. 
  
 Yale