Creation/Dev/Script/Client/GuiMenuCtrl: Difference between revisions

From Graal Bible
mNo edit summary
Line 8: Line 8:
iconwidth - integer (read only)
iconwidth - integer (read only)


menus[] - array of [[Creation/Dev/Script/Client/GuiContextMenuCtrl|GuiContextMenuCtrl]]
menus[] - array of [[Creation/Dev/Script/Client/GuiContextMenuCtrl|GuiContextMenuCtrl]], each submenu also has an icon ([[Creation/Dev/Script/Client/TDrawingPanel|TDrawingPanel]])
 


=Functions=
=Functions=

Revision as of 14:33, 25 February 2006

Inherits GuiControl.


Variables

iconheight - integer (read only)

iconwidth - integer (read only)

menus[] - array of GuiContextMenuCtrl, each submenu also has an icon (TDrawingPanel)

Functions

addmenu(str) - returns object

clearmenus()

findmenu(str) - returns object

removemenu(str)

seticonsize(int, int)


Events

onSelect(menuname,entryid,entrytext,entryindex) - an entry of a submenu has been selected

onCancel() - a submenu has been collapsed without selecting an entry

onIconResized(newwidth,newheight) - the icons size has been modified (via setIconSize())