Creation/Dev/Script/Client/GuiPopUpMenuCtrl: Difference between revisions
From Graal Bible
mNo edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
Inherits [[Creation/Dev/Script/Client/GuiTextCtrl|GuiTextCtrl]]. | |||
=Variables= | |||
<pre> | <pre> | ||
clipcolumntext - boolean | clipcolumntext - boolean | ||
columns - string - of format "0 16", offset of the tabulators | columns - string - of format "0 16", offset of the tabulators | ||
Line 20: | Line 24: | ||
textprofile - object | textprofile - object | ||
width - integer | width - integer | ||
</pre> | |||
=Functions= | |||
<pre> | |||
addrow(int, str) - returns object - the added row | addrow(int, str) - returns object - the added row | ||
addtext(str, int) - deprecated, use addRow() instead | addtext(str, int) - deprecated, use addRow() instead | ||
Line 57: | Line 67: | ||
sort() | sort() | ||
</pre> | </pre> | ||
=Events= | |||
onSelect(entryid,entrytext,entryindex) - a menu entry has been selected | |||
onCancel() - the menu collapsed without selecting any entry |
Revision as of 14:09, 25 February 2006
Inherits GuiTextCtrl.
Variables
clipcolumntext - boolean columns - string - of format "0 16", offset of the tabulators enumerate - boolean fitparentwidth - boolean groupsortorder - string iconheight - integer (read only) iconwidth - integer (read only) maxpopupheight - integer profile - object resizecell - boolean rows - object (read only) rows - object (read only) scrollprofile - object selected - object (read only) sortcolumn - integer sortmode - string sortorder - string textprofile - object width - integer
Functions
addrow(int, str) - returns object - the added row addtext(str, int) - deprecated, use addRow() instead clearrows() clearselection() close() findtext(str) - returns integer findtext(str) - returns integer - row index findtextid(str) - returns integer - row id forceclose() forceonaction() getrowatpoint(int, int) - returns integer - row index getrowidatpoint(int, int) - returns integer - row id getrownumbyid(int) - returns integer getselected() - returns integer getselectedid() - returns integer - row id getselectedids() - returns object - array of row ids getselectedrow() - returns integer - row index getselectedrows() - returns object - array of row indices getselectedtext() - returns string insertrow(int, int, str) - returns object - the inserted row isidselected(int) - returns boolean isrowselected(int) - returns boolean makevisible(int) makevisiblebyid(int) open(int, int) removerow(int) removerowbyid(int) rowcount() - returns integer rowcount() - returns integer seticonsize(int, int) setrowactivebyid(int, bool) setrowbyid(int, str) setselected(int) setselectedbyid(int) setselectedrow(int) sort()
Events
onSelect(entryid,entrytext,entryindex) - a menu entry has been selected
onCancel() - the menu collapsed without selecting any entry