IupSubMenu

IUP - Portable User Interface

IupSubmenu

Creates a menu item that, when selected, opens another menu.

Parameters/Return

Ihandle* IupSubmenu(char *title, Ihandle *menu); [in C]
iupsubmenu{menu: iuplua_tag; title = title: string} -> (elem: iuplua_tag) [in IupLua3]
iup.submenu{menu: iuplua_tag; title = title: string} -> (elem: iuplua_tag) [in IupLua5]
submenu(title, menu) [in LED]

title: String containing the text to be shown on the item. It is a creation-only attribute and cannot be changed later.
menu: menu identifier.

This function returns the identifier of the created submenu, or NULL if an error occurs.

Attributes

KEY: Associates a key to the submenu. In Windows, when used will also set an underscore on the respective letter of the submenu title.

Callbacks

OPEN_CB: Called just before the submenu is opened.

MENUCLOSE_CB: Called right before the submenu is closed.

Examples

iupsubmenu.gif (5794 bytes)

See Also

IupItem, IupSeparator, IupMenu.