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.

Kind regards, pl

--
If you give someone a program, you will frustrate them for a day;
if you teach them how to program, you will frustrate them for a lifetime.
     -- Author unknown

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

Reply via email to