How do I support MouseHover over different TreeNodes in one TreeView?

  • Thread starter Thread starter Eric Promislow
  • Start date Start date
E

Eric Promislow

I have a TreeView with more than one TreeNode. I would like to do
something like set a ToolTip during a MouseHover event.
Unfortunately, since TreeNodes don't generate events. The TreeView
owns the MouseHover event, but it generates only one event per session
of moving from TreeNode to TreeNode. I could move most of my logic
into the MouseMove event, but I don't want to recalc everything
everything on every MouseMove over the TreeView, as it could slow down
the mouse motion. I greatly prefer the delay the MouseHover event
gives me.

Ideally, there would be a way that I can cause subsequent MouseHover
events to be generated after a MouseMove event over a different node
from the last MouseHover event. Is there something?

Thanks,
Eric

(e-mail address removed)
 
I figured it out -- combine MouseMove events and a timer
to simulate firing multiple TreeNode MouseHover events
over a single TreeView mouse session.

- Eric
 
Back
Top