Page 1 of 1
How do I use the AppleMenu?
Posted: Sun Sep 07, 2008 4:07 am
by WilliamL
When I make an executable I get the Apple Menu but I don't know how to make a menu item in it. The menu I'm talking about is not the one with the apple at the top but the next one that contains 'Hide' and 'Services' and 'Quit' and how do I read the events from this menu?
Any ideas?
Posted: Sun Sep 07, 2008 12:20 pm
by Kale
Purebasic manual wrote:
MacOS X: the 'Quit', 'Preferences' and 'About' items are considered as specials and need to be placed in the 'Application' menu to have the look'n'feel of OS X applications. PureBasic support the #PB_Menu_Quit, #PB_Menu_Preferences and #PB_Menu_About constants (to be specified as the 'MenuItemID') for these kind of menu items. When one of these constants is detected, the item isn't inserted in the current menu, but in the 'Application' menu. If a shortcut was specified, it is simply ignored and replaced by the standard one. These 3 constants aren't defined on others OS, to allow flexible numbering on these OS.
Thats all that you can put in there.
Posted: Sun Sep 07, 2008 5:24 pm
by WilliamL
That is certainly the info I needed!
I did not see this info in the html help files but I do see it in the pdf version. Bummer, now I have to look in both manuals for info.
Maybe somebody should make a Mac manual with all the special info that only applies to Macs.
Posted: Thu Feb 12, 2009 12:35 pm
by Joakim Christiansen
WilliamL wrote:
Maybe somebody should make a Mac manual with all the special info that only applies to Macs.
I second this!
Mac can be confusing for a lot of newbies like myself who have been using Windows all my life
