Components | All | New | MacOS | Windows | Linux | iOS | ||||
Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old |
MenuItem.SetAlternate
Marks the receiver as an alternate to the previous menu item.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
Menu | 4.1 | ✅ Yes | ❌ No | ❌ No | ❌ No | ❌ No |
MBS( "MenuItem.SetAlternate"; 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 | 1 if the receiver is an alternate to the previous menu item, 0 otherwise. | 1 |
Result
Returns OK or error.
Description
Marks the receiver as an alternate to the previous menu item.If the receiver has the same key equivalent as the previous item, but has different key equivalent modifiers, the items are folded into a single visible item and the appropriate item shows while tracking the menu, depending on what modifier key (if any) is pressed. The menu items may also have no key equivalent as long as the key equivalent modifiers are different.
See also MenuItem.GetAlternate.
See also
- MenuItem.CreateMenuItem
- MenuItem.CreateSeparator
- MenuItem.GetAlternate
- MenuItem.SetState
- MenuItem.SetUnderline
This function checks for a license.
Created 18th August 2014, last changed 18th August 2014
