Board index » delphi » Popupmenu closed???

Popupmenu closed???

How can I detect if a Popupmenu is closed, without selection of any item??
(sorry for my bad English).
 

Re:Popupmenu closed???


Well you must not use autoPopup, you should in the Control's OnPopup do

SomeFlag := true;
PopupMenu1.Popup(...);
if SomeFlag = true then
begin
    //what to do if user didn't select any menu item

end;

and in evry menuItem OnClick you should put in the beggining :

SomeFlag := false;  //so previous procedure know's that some menu has been
                   //   seleted

Quote
On Thu, 14 Jun 2001, Francesco Olivieri wrote:
> How can I detect if a Popupmenu is closed, without selection of any item??
> (sorry for my bad English).

Other Threads