Components All New MacOS Windows Linux iOS
Examples Mac & Win Server Client Guides Statistic FMM Blog Deprecated Old


Sets whether menu item is selectable.

Component Version macOS Windows Linux Server iOS SDK
Menu 6.3 ✅ Yes ✅ Yes ❌ No ❌ No ❌ No


This function was deprecated. Use MenuItem.SetEnabled instead.

MBS( "MenuItem.SetSelectable"; item; Value )   More


Parameter Description Example
item The reference to the menu item. Please create one with MenuItem.CreateMenuItem or MenuItem.CreateSeparator. $item
Value The new setting.
Pass 1 to make menu item selectable or 0 to disable selection.


Returns OK or error.


Sets whether menu item is selectable.
By default on Mac you can select submenu's parent menu item. This function can be used to disable this behavior.
For the plugin all menu items are created selectable = true by default.

Currently this flag has no effect on Windows.


Disable selecting menuitem:

MBS("MenuItem.SetSelectable"; $item; 0)

See also

Release notes

Blog Entries

This function is free to use.

Created 17th June 2016, last changed 19th December 2021

MenuItem.SetScriptAction - MenuItem.SetState