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

Blog Entries

This function is free to use.

Created 11st May 2015, last changed 11st May 2015


MenuItem.SetOnStateImage - MenuItem.SetRequireControl