Topics   All   Mac OS X (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server (Not)   Client   Old   Guides   Examples
New in version: 6.4   6.5   7.0   7.1   7.2   7.3   7.4   7.5   8.0   8.1    Statistic  


Sets whether menu item is selectable.

Component Version macOS Windows Server FileMaker Cloud FileMaker iOS SDK
Menu 6.3 Yes Yes No No No

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


Parameter Description Example value
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

MenuItem.SetScriptAction   -   MenuItem.SetState

Feedback: Report problem or ask question.

MBS Xojo Plugins