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?
How do I use the AppleMenu?
How do I use the AppleMenu?
MacBook Pro-M1 (2021), Sequoia 15.4, PB 6.20
Thats all that you can put in there.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.
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.
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
- Joakim Christiansen
- Addict
- Posts: 2452
- Joined: Wed Dec 22, 2004 4:12 pm
- Location: Norway
- Contact: