Menuitem class describes a single menu item. You can use all of the gadtools menus features expect image menus here.
Since Menuitem class is a subclass of Family class, you can add other menu items as children of a menu item to indicate sub menus. MUI does not limit the level of sub menus, but the operating system currently allows a maximum nesting level of one. Because of this, children of menu items should not contain other menu items for now, the results are unpredictable.
Menuitems must always be embedded inside a <menu>
tag
which in turn have to be embedded inside a <menustrip>
tag.
See Menustrip class for details.
Please note that the XML tag for menuitem class is just <item>
and not <menuitem>
.
See Menustrip class for an example.