On mac, you can probably set the NSMenu's delegate to an object of your choice and have it implement menuDidClose: if you want to implement this yourself.
On Wed, Jul 22, 2009 at 1:07 PM, Tommi<to...@chromium.org> wrote: > for Windows: > http://msdn.microsoft.com/en-us/library/ms647599(VS.85).aspx > "The WM_EXITMENULOOP message informs an application's main window procedure > that a menu modal loop has been exited." > On Wed, Jul 22, 2009 at 2:13 PM, Albert J. Wong (王重傑) <ajw...@chromium.org> > wrote: >> >> I need to find a way to know when a context menu is "closed", either via a >> menu item selection, or via hitting escape, opening a new menu, unfocusing >> the window, etc. >> Ideally, there'd be some sort of "menu closed" function or event that is >> called when the menu stops being displayed. On the gtk port, I see >> a RenderViewContextMenuGtk::StoppedShowing(), but nothing similar for >> Windows and Mac. >> Can anyone give me a pointer on how to do something like this for mac, and >> windows? >> Thanks, >> Albert >> > > > > > --~--~---------~--~----~------------~-------~--~----~ Chromium Developers mailing list: chromium-dev@googlegroups.com View archives, change email options, or unsubscribe: http://groups.google.com/group/chromium-dev -~----------~----~----~----~------~----~------~--~---