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:
9.3
9.4
9.5
10.0
10.1
10.2
10.3
10.4
10.5
10.6
Statistic
FMM
Blog
MenuItem.SetSelectable
Sets whether menu item is selectable.
| Component | Version | macOS | Windows | Linux | Server | FileMaker iOS SDK |
| Menu | 6.3 | Yes | Yes | No | No | No |
MBS( "MenuItem.SetSelectable"; item; Value ) More
Parameters
| 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 |
Result
Returns OK or error.
Description
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.
Examples
Disable selecting menuitem:
MBS("MenuItem.SetSelectable"; $item; 0)
See also
Blog Entries
Created 17th June 2016, last changed 17th June 2016
MenuItem.SetScriptAction - MenuItem.SetState
Feedback: Report problem or ask question.
Links
MBS Xojo Plugins