Creation/Dev/Script/Client/GuiContextMenuCtrl: Difference between revisions
From Graal Bible
mNo edit summary |
Pooper200000 (talk | contribs) No edit summary |
||
(4 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
[[Category:Scripting Reference]] | |||
Inherits [[Creation/Dev/Script/Client/GuiControl|GuiControl]]. | |||
=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 18: | Line 23: | ||
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 | ||
clearrows() | clearrows() | ||
Line 41: | Line 52: | ||
removerowbyid(int) | removerowbyid(int) | ||
rowcount() - returns integer | rowcount() - returns integer | ||
seticonsize(int, int) | seticonsize(int, int) - sets the width and height of | ||
the icons for the entries, maximum size is 64x64 | |||
setrowactivebyid(int, bool) | setrowactivebyid(int, bool) | ||
setrowbyid(int, str) | setrowbyid(int, str) | ||
Line 48: | Line 60: | ||
sort() | sort() | ||
</pre> | </pre> | ||
=Events= | |||
onSelect(entryid,entrytext,entryindex) - a menu entry has been selected | |||
onCancel() - the menu collapsed without selecting any entry |
Latest revision as of 23:51, 15 February 2010
Inherits GuiControl.
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) profile - object resizecell - boolean 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 clearrows() clearselection() close() findtext(str) - returns integer - row index findtextid(str) - returns integer - row id getrowatpoint(int, int) - returns integer - row index getrowidatpoint(int, int) - returns integer - row id getrownumbyid(int) - 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 seticonsize(int, int) - sets the width and height of the icons for the entries, maximum size is 64x64 setrowactivebyid(int, bool) setrowbyid(int, str) setselectedbyid(int) setselectedrow(int) sort()
Events
onSelect(entryid,entrytext,entryindex) - a menu entry has been selected
onCancel() - the menu collapsed without selecting any entry