Components All New MacOS Windows Linux iOS
Examples Mac & Win Server Client Guides Statistic FMM Blog Deprecated Old


Sets the submenu of the menu item.

Component Version macOS Windows Linux Server iOS SDK
Menu 4.1 ✅ Yes ✅ Yes ❌ No ❌ No ❌ No
MBS( "MenuItem.SetSubMenu"; item; submenu )   More


Parameter Description Example
item The reference to the menu item. Please create one with MenuItem.CreateMenuItem or MenuItem.CreateSeparator. $item
submenu The reference to the menu. Please create one with Menu.CreateMenu. $submenu


Returns OK or error.


Sets the submenu of the menu item.
See also MenuItem.GetSubMenu.

See also

This function checks for a license.

Created 18th August 2014, last changed 31st August 2014

MenuItem.SetStrikeOut - MenuItem.SetTag