How to add a topic to the application menu?

Mac OSX specific forum
Kale
PureBasic Expert
PureBasic Expert
Posts: 3000
Joined: Fri Apr 25, 2003 6:03 pm
Location: Lincoln, UK
Contact:

How to add a topic to the application menu?

Post by Kale »

In MacOSX each app has an application menu named after the app itself and it usually contains stuff like ABout/Services/Hide App/Quit etc..

how can i add commands to this menu as it is not a PB user created menu?

The MacOS PB IDE does include commands in this menu, Freak, HELP!!!! :twisted:
--Kale

Image
Fred
Administrator
Administrator
Posts: 16664
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Post by Fred »

Each application created has this menu created automatically (just test will a small example). To add the 'Quit', 'About' and 'Preferences' menu item, you can use the following constants for the MenuItem() command:

#PB_Menu_Quit, #PB_Menu_About and #PB_Menu_Preferences
Kale
PureBasic Expert
PureBasic Expert
Posts: 3000
Joined: Fri Apr 25, 2003 6:03 pm
Location: Lincoln, UK
Contact:

Post by Kale »

thanks... thought i read that somewhere but couldn;t find it again :oops:
--Kale

Image
Fred
Administrator
Administrator
Posts: 16664
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Post by Fred »

Was probably in one of the beta annoucement post. It's written in the forthcoming doc tough, don't worry :)
Post Reply