IupSubMenu

IUP - Portable User Interface

IupSubmenu

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

Creation

Ihandle* IupSubmenu(char *title, Ihandle *menu); [in C]
iup.submenu{menu: ihandle; title = title: string} -> (elem: ihandle) [in Lua]
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.