How do I use the AppleMenu?

Mac OSX specific forum
WilliamL
Addict
Addict
Posts: 1252
Joined: Mon Aug 04, 2008 10:56 pm
Location: Seattle, USA

How do I use the AppleMenu?

Post 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?
MacBook Pro-M1 (2021), Sequoia 15.4, PB 6.20
Kale
PureBasic Expert
PureBasic Expert
Posts: 3000
Joined: Fri Apr 25, 2003 6:03 pm
Location: Lincoln, UK
Contact:

Post 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.
--Kale

Image
WilliamL
Addict
Addict
Posts: 1252
Joined: Mon Aug 04, 2008 10:56 pm
Location: Seattle, USA

Post 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.
MacBook Pro-M1 (2021), Sequoia 15.4, PB 6.20
User avatar
Joakim Christiansen
Addict
Addict
Posts: 2452
Joined: Wed Dec 22, 2004 4:12 pm
Location: Norway
Contact:

Post 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 :P
I like logic, hence I dislike humans but love computers.
Post Reply