On Nov 2, 10:00*pm, Peter Duniho <NpOeStPe...@NnOwSlPiAnMk.com> wrote:
> On 11/2/11 1:04 PM, Dom wrote:
>
> > 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.
>
> 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
|