Newsgroups : Borland : borland.public.delphi.nativeapi.win32 : 2006 Jan : popup menu's window

www.cryer.info
Managed Newsgroup Archive

popup menu's window

Subject:popup menu's window
Posted by:"András Lukács" (lukacsandr..@netscape.net)
Date:Mon, 30 Jan 2006 23:17:48 +0100

Hi, Everyone,

is there a way to find out when a popup menu disappears? I don't mean when
an item on it has been selected but when the user presses ESC or clicks
anywhere else in Windows. I'd need to know because I have a component which
visually selects some text on itself (before the menu appears) to which the
popup menu's contents refer to, and that selection should be undone when the
menu disappears, for whatever reason. I use a TPopupMenu component, which
provides a window handle but I couldn't make much of it. Please write if you
have some ideas. Thanks,

András

Glossary

Replies:

www.cryer.info
Managed Newsgroup Archive