How does wxMac support the standard Apple About menu item and Help menu?

Apple help menu standard support
0
Posted

How does wxMac support the standard Apple About menu item and Help menu?

0

Because wxWidgets does not have a specific API for the About menu item or the Help menu, the Mac OS port uses some static variables to help the engine make the right decisions: • It assumes that the About menu item is part of a Help menu. • The title of the Help menu is stored in wxApp::s_macHelpMenuTitleName, it defaults to “&Help”, but you can change it in your constructor to your specific menu title. • The item Id of the About menu is stored in wxApp::s_macAboutMenuItemID, it defaults to wxID_ABOUT, but can be changed as well to suit your needs. • The other items of the wxWidgets help menu are appended to the Mac OS Help menu and the translation of Ids is handled transparently for your application.

Related Questions