Philipp Lohmann wrote:
Mathias Bauer wrote:
Pavel Janík wrote:

Hi,

in native Mac OS X application the so called "Application menu" has two menu items - About and Preferences (see e.g. http://tinyurl.com/ 286gao).

Click on About menu item and/or Preferences... item is cought in VCL. We would like to be able to send events to handle these actions to the application. Ie. we want to have something like SALEVENT_SHUTDOWN for Quit menu item and handle it somewhere in framework.

How to do that? Can you please help us to do so?

I'm not sure if I understand. What is VCL doing with these menu items?
Is it just supressing them? Or does it call any handlers in case of?

Currently we do nothing with it, aside from the Quit entry (which we handle as a shutdown event). This is an extra menu that every application gets "gratis". When one of the entries is pressed the menu handler gets called with fixed IDs. We do not create that menu entry, so we have currently no means to transport that. I think in OOo terms this is most similar to a Command event, just this one does not come from keyboard or scroll wheel but from an extra system menu.


Hi Philipp,

I think using your Command event approach is the best way to go. The MacOS port has just to make sure that these event are send when the user selects one of the system menu entries. Just write me an issue if the premises are implemented and I will add the necessary code for the framework project.

Regards,
Carsten

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to