PC Review


Reply
Thread Tools Rate Thread

Detecting when an item on a popup menu is highlighted

 
 
Dom
Guest
Posts: n/a
 
      2nd Nov 2011
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
 
Reply With Quote
 
 
 
 
Dom
Guest
Posts: n/a
 
      3rd Nov 2011
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
 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off



Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:44 AM.