How to Get the iMac System Menu Topic is solved

Do you have a typical platform dependent issue you're battling with ? Ask it here. Make sure you mention your platform, compiler, and wxWidgets version.
Post Reply
ChineseAlexander
Earned some good credits
Earned some good credits
Posts: 110
Joined: Fri Mar 31, 2006 6:05 am

How to Get the iMac System Menu

Post by ChineseAlexander »

for some reason, we want to append a menu item into the System Menu(next to the Apple logo), but we can't get the handle. Help!
User avatar
tierra
Site Admin
Site Admin
Posts: 1355
Joined: Sun Aug 29, 2004 7:14 pm
Location: Salt Lake City, Utah, USA
Contact:

Post by tierra »

You can only tie in the About, Preferences, and Quit menu event handlers, the rest of the menu is handled by Mac OS X. It is setup this way for consistency between Mac applications for conforming to the Apple HIG.
ChineseAlexander
Earned some good credits
Earned some good credits
Posts: 110
Joined: Fri Mar 31, 2006 6:05 am

But How Can I to tie in the About,Perferences and Quit Menu?

Post by ChineseAlexander »

tierra wrote:You can only tie in the About, Preferences, and Quit menu event handlers, the rest of the menu is handled by Mac OS X. It is setup this way for consistency between Mac applications for conforming to the Apple HIG.
But How Can I to tie in the About,Perferences and Quit Menu???
User avatar
ABX
Can't get richer than this
Can't get richer than this
Posts: 810
Joined: Mon Sep 06, 2004 1:43 pm
Location: Poznan, Poland
Contact:

Re: But How Can I to tie in the About,Perferences and Quit M

Post by ABX »

ChineseAlexander wrote:But How Can I to tie in the About,Perferences and Quit Menu???
Just like it is described at the begining of wxMenu manual:

http://www.wxwidgets.org/manuals/2.6.3/ ... tml#wxmenu

AFAIK once you will use wxID_ABOUT or wxID_EXIT then your item will be automagically moved into system menu.

ABX
CVS Head, 2.8.X
wxMSW, wxWinCE, wxPalmOS, wxOS2, wxMGL, bakefile
gcc 3.2.3, bcc 5.51, dmc 8.48, ow 1.6, vc 7.1, evc 3/4, pods 1.2
User avatar
tierra
Site Admin
Site Admin
Posts: 1355
Joined: Sun Aug 29, 2004 7:14 pm
Location: Salt Lake City, Utah, USA
Contact:

Post by tierra »

Both the official FAQ and wxWiki describe this in a little more detail as well:
http://www.wxwidgets.org/docs/faqmac.htm#aboutmenu
http://www.wxwidgets.org/wiki/index.php ... S_menu_bar
Post Reply