Creation/Dev/Script/Client/GuiTextListCtrl: Difference between revisions
mNo edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
Inherits from [[Creation/Dev/Script/Client/GuiArrayCtrl|GuiArrayCtrl]]. | |||
=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) | |||
resizecell - boolean | |||
rows[] - array of [[Creation/Dev/Script/Client/GuiTextListEntry|GuiTextListEntry]] | |||
selected - object (read only) | |||
sortcolumn - integer | |||
sortmode - string | |||
sortorder - string | |||
=Functions= | |||
addrow(int, str) - returns object - the added row | |||
clearrows() | |||
clearselection() | |||
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) | |||
removerow(int) | |||
removerowbyid(int) | |||
rowcount() - returns integer | |||
seticonsize(int, int) | |||
setrowactivebyid(int, bool) | |||
setrowbyid(int, str) | |||
setselectedbyid(int) | |||
setselectedrow(int) | |||
sort() | |||
=Events= | |||
onSelect(entryid,entrytext,entryindex) - a row has been selected | |||
onDblClick(entryid,entrytext,entryindex) - is invoked when the mouse is double-clicked while being over a row | |||
onDeleteKey(entryid,entrytext,entryindex) - the delete key was pressed while a row was selected | |||
onOpenMenu(entryid,entrytext,entryindex) - is invoked when the right mouse button has been clicked while the mouse is over a row | |||
onIconResized(newwidth,newheight) - the icon size has been changed via setIconSize() |
Revision as of 13:34, 25 February 2006
Inherits from GuiArrayCtrl.
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)
resizecell - boolean
rows[] - array of GuiTextListEntry
selected - object (read only)
sortcolumn - integer
sortmode - string
sortorder - string
Functions
addrow(int, str) - returns object - the added row
clearrows()
clearselection()
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)
removerow(int)
removerowbyid(int)
rowcount() - returns integer
seticonsize(int, int)
setrowactivebyid(int, bool)
setrowbyid(int, str)
setselectedbyid(int)
setselectedrow(int)
sort()
Events
onSelect(entryid,entrytext,entryindex) - a row has been selected
onDblClick(entryid,entrytext,entryindex) - is invoked when the mouse is double-clicked while being over a row
onDeleteKey(entryid,entrytext,entryindex) - the delete key was pressed while a row was selected
onOpenMenu(entryid,entrytext,entryindex) - is invoked when the right mouse button has been clicked while the mouse is over a row
onIconResized(newwidth,newheight) - the icon size has been changed via setIconSize()