Components | All | New | MacOS | Windows | Linux | iOS | ||||
Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old |
MenuItem.SetRequireCommand
Set to show menu item only if command key is pressed down.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
Menu | 5.1 | ✅ Yes | ✅ Yes | ❌ No | ❌ No | ❌ No |
MBS( "MenuItem.SetRequireCommand"; 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 require command key or 0 to not require it. | 1 |
Result
Returns OK or error.
Description
Set to show menu item only if command key is pressed down.See also
- MenuItem.CreateMenuItem
- MenuItem.CreateSeparator
- MenuItem.GetRequireCommand
- MenuItem.GetRequireControl
- MenuItem.GetRequireOption
- MenuItem.SetRequireControl
- MenuItem.SetRequireOption
- MenuItem.SetRequireShift
Blog Entries
This function is free to use.
Created 11st May 2015, last changed 11st May 2015