Topics   All   Mac OS X (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server (Not)   Client   Old   Guides   Examples
New in version: 6.4   6.5   7.0   7.1   7.2   7.3   7.4   7.5   8.0   8.1    Statistic  


Marks the receiver as an alternate to the previous menu item.

Component Version macOS Windows Server FileMaker Cloud FileMaker iOS SDK
Menu 4.1 Yes No No No No

MBS( "MenuItem.SetAlternate"; item; value )


Parameter Description Example value
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


Returns OK or error.


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.Release   -   MenuItem.SetAttributedTitle

Feedback: Report problem or ask question.

MBS Xojo PDF Plugins