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

From Graal Bible
mNo edit summary
 
No edit summary
Line 1: Line 1:
<pre>
Inherits from [[Creation/Dev/Script/Client/GuiArrayCtrl|GuiArrayCtrl]].
      GuiTextListCtrl (GuiArrayCtrl):
 
        clipcolumntext - boolean
=Variables=
        columns - string - of format "0 16", offset of the tabulators
 
        enumerate - boolean
clipcolumntext - boolean
        fitparentwidth - boolean
 
        groupsortorder - string
columns - string - of format "0 16", offset of the tabulators
        iconheight - integer (read only)
 
        iconwidth - integer (read only)
enumerate - boolean
        resizecell - boolean
 
        selected - object (read only)
fitparentwidth - boolean
        sortcolumn - integer
 
        sortmode - string
groupsortorder - string
        sortorder - string
 
        addrow(int, str) - returns object - the added row
iconheight - integer (read only)
        clearrows()
 
        clearselection()
iconwidth - integer (read only)
        findtext(str) - returns integer - row index
 
        findtextid(str) - returns integer - row id
resizecell - boolean
        getrowatpoint(int, int) - returns integer - row index
 
        getrowidatpoint(int, int) - returns integer - row id
rows[] - array of [[Creation/Dev/Script/Client/GuiTextListEntry|GuiTextListEntry]]
        getrownumbyid(int) - returns integer
 
        getselectedid() - returns integer - row id
selected - object (read only)
        getselectedids() - returns object - array of row ids
 
        getselectedrow() - returns integer - row index
sortcolumn - integer
        getselectedrows() - returns object - array of row indices
 
        getselectedtext() - returns string
sortmode - string
        insertrow(int, int, str) - returns object - the inserted row
 
        isidselected(int) - returns boolean
sortorder - string
        isrowselected(int) - returns boolean
 
        makevisible(int)
 
        makevisiblebyid(int)
=Functions=
        removerow(int)
 
        removerowbyid(int)
addrow(int, str) - returns object - the added row
        rowcount() - returns integer
 
        seticonsize(int, int)
clearrows()
        setrowactivebyid(int, bool)
 
        setrowbyid(int, str)
clearselection()
        setselectedbyid(int)
 
        setselectedrow(int)
findtext(str) - returns integer - row index
        sort()
 
</pre>
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()