Topics
All
MacOS
(Only)
Windows
(Only)
Linux
(Only, Not)
iOS
(Only, Not)
Components
Crossplatform Mac & Win
Server
Client
Old
Deprecated
Guides
Examples
Videos
New in version:
12.2
12.3
12.4
12.5
13.0
13.1
13.2
13.3
13.4
13.5
Statistic
FMM
Blog
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.
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. |
0 |
Returns OK or error.
Disable selecting menuitem:
MBS("MenuItem.SetSelectable"; $item; 0)
This function is free to use.
Created 17th June 2016, last changed 19th December 2021