Difference between revisions of "PrefsMenuItem"

From Xojo Documentation

(See Also)
 
Line 1: Line 1:
 +
{{DeprecatedItem|version=2021r3|replacement=[[DesktopPreferencesMenuItem]]}}
 
{{ClassBox
 
{{ClassBox
 
| super=[[MenuItem]]
 
| super=[[MenuItem]]

Latest revision as of 20:48, 13 September 2021

Class (inherits from MenuItem)


PrefsMenuItem is designed to handle the Preferences menu item for macOS applications. A menu item derived from the PrefsMenuItem class is automatically moved to the application menu under macOS. Under other operating systems, such a menu item stays where you put it in the Menu Editor.

Notes

Since this class is based on MenuItem, please refer to this class for information on its Properties, Methods, and Events.

This class is for creating the Preferences menu item for applications that will run on macOS. Create the menu item under the menu that you want to use for the Windows and Linux builds and then use the Inspector to change its super class to PrefsMenuItem. Otherwise, set up the menu item normally. In your macOS build, it will automatically move to the application menu.

According to Apple user interface guidelines, Cmd+, (comma) is the recommended keyboard shortcut for an application's Preferences menu item.

See Also

ApplicationMenuItem, MenuItem, QuitMenuItem classes.