Board index » delphi » Popup menu

Popup menu


2003-09-09 03:21:29 PM
delphi36
How do I make the popup menu popup automatically whenever I move the mouse
across the tool buttons ?
 
 

Re:Popup menu

"Alan" <XXXX@XXXXX.COM>writes:
Quote
How do I make the popup menu popup automatically whenever I move the mouse
across the tool buttons ?
See my other response.
Kurt
 

Re:Popup menu

hi, Alan
Quote
How do I make the popup menu popup automatically whenever I move the
mouse across the tool buttons ?
you can use Popup method on TPopupMenu.
example: PopupMenu1.Popup(x, y);
where x and y is position when menu must show.
best regards,
 

Re:Popup menu

I tried this but it only worked at the first tool button that I moved the
mouse over, I need to click on other area to cancel the first popup menu and
move to other tool button, then the second popup meun will open for the
other tool button.
Quote
you can use Popup method on TPopupMenu.

example: PopupMenu1.Popup(x, y);

where x and y is position when menu must show.
 

Re:Popup menu

Alan,
Correct.
Once you invoke a pop-up menu, it takes control of the mouse until you close
it down - via selecting a menu option or clicking away from the control.
i.e.
when you call (or invoke) a pop-up menu, all processing stops until
something
is selected. that is the point of the pop-up menu.
Thanks,
Brett
"Alan" <XXXX@XXXXX.COM>writes
Quote
I tried this but it only worked at the first tool button that I moved the
mouse over, I need to click on other area to cancel the first popup menu
and
move to other tool button, then the second popup meun will open for the
other tool button.

>you can use Popup method on TPopupMenu.
>
>example: PopupMenu1.Popup(x, y);
>
>where x and y is position when menu must show.


 

Re:Popup menu

Hi,
I have a dragable image on my TMemo. Everytime the user right clicks on the image a Pop up menu will appear. However, my problem is that the X and Y being return are from the X and Y of the Image properties. Is there away to make sure that it will pop up where the mouse cursor is?
 

Re:Popup menu

Nevermind. Found Gambit's example here...
newsgroups.borland.com/cgi-bin/dnewsweb&utag=