Detecting when an item on a popup menu is highlighted

D

Dom

I'm a little surprised that there is no "ItemHighlighted" event for a
popup menu. I'd like to change certain parts of the form so that the
user gets a forshadowing of what will happen if an item is selected.
MS Office does this when you go though the different fonts. Is there a
simple way to do this? I can only think of capturing the mousemove
event of the popup menu and then determining the item based on the
location of the mouse. But before I do that, I'd like to know if
anyone has an easier way.

Dom
 
D

Dom

I would expect you to care more about the position of the mouse relative
to the menu item than the visual state of the drawn item.

With that in mind, why doesn't the MouseEnter event do what you want?
Or maybe MouseHover (if you don't want to react immediately)?

Pete

That's exactly what I wanted. I was looking for the appropriate event
in the menu control, and not in the menuitem control. Thanks.

Dom
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top