Difference between revisions of "Treeitem"
From Lianjapedia
Yvonne.milne (Talk | contribs) m (Yvonne.milne moved page Visage Application Framework - Treeitem to Treeitem without leaving a redirect) |
Yvonne.milne (Talk | contribs) |
||
Line 1: | Line 1: | ||
+ | Note: property, method and event names should be referred to in lowercase in case-sensitive scripting languages. | ||
+ | |||
====Properties==== | ====Properties==== | ||
This class supports the '''Common properties''' plus the following: | This class supports the '''Common properties''' plus the following: | ||
− | {| class="wikitable" | + | {| class="wikitable" width=100% |
!width="20%"|Property | !width="20%"|Property | ||
!Access (R/RW) | !Access (R/RW) | ||
Line 11: | Line 13: | ||
|Text | |Text | ||
|RW | |RW | ||
− | | | + | |Character |
− | | | + | |Text displayed in the item |
|- | |- | ||
|Value | |Value | ||
|RW | |RW | ||
− | | | + | |Character |
− | | | + | |Value of the item |
|- | |- | ||
|Picture | |Picture | ||
|RW | |RW | ||
− | | | + | |Character |
− | | | + | |Filename of image displayed |
|- | |- | ||
|Checkstate | |Checkstate | ||
|RW | |RW | ||
− | | | + | |Boolean |
− | | | + | |Whether the item is checked or not |
|- | |- | ||
|Tooltiptext | |Tooltiptext | ||
|RW | |RW | ||
− | | | + | |Character |
− | | | + | |Text displayed when mouse hovers over item |
|- | |- | ||
|Showchildindicator | |Showchildindicator | ||
|RW | |RW | ||
− | | | + | |Boolean |
− | | | + | |Whether indicator should be displayed if item has child items |
+ | |- | ||
+ | |ChildCount | ||
+ | |R | ||
+ | |Numeric | ||
+ | |Number of child items below this item | ||
|- | |- | ||
|} | |} | ||
Line 45: | Line 52: | ||
This class supports the '''Common methods''' plus the following: | This class supports the '''Common methods''' plus the following: | ||
− | {| class="wikitable" | + | {| class="wikitable" width=100% |
!width="20%"|Method | !width="20%"|Method | ||
!Args | !Args | ||
Line 51: | Line 58: | ||
|- | |- | ||
|Additem | |Additem | ||
− | | | + | |[icon as Character,] caption as Character |
− | | | + | |Add an item, specifying the item caption and optionally an icon filename |
|- | |- | ||
− | |Additems | + | |valign=top|Additems |
− | | | + | |valign=top|selectstring as Character | items as Array[, icon as Character] |
− | | | + | |Add items based on an SQL SELECT query or from an array, optionally including an icon filename |
|- | |- | ||
− | |Addobject | + | |valign=top|Addobject |
− | | | + | |valign=top|existing as Object | newobject as Character, class as Character |
− | | | + | |Add an existing object or a new object, in which case the object's class must also be specified |
|- | |- | ||
|Removeobject | |Removeobject | ||
− | | | + | |existing as Object |
− | | | + | |Remove the specified object |
|- | |- | ||
|Clear | |Clear | ||
− | | | + | |None |
− | | | + | |Clear the item |
|- | |- | ||
|Expand | |Expand | ||
− | | | + | |None |
− | | | + | |Expand the item to display any child items |
|- | |- | ||
|Collapse | |Collapse | ||
− | | | + | |None |
− | | | + | |Collapse the item to hide any child items |
|- | |- | ||
|Text | |Text | ||
− | | | + | |column as Numeric |
− | | | + | |Text displayed at the specified item column |
|- | |- | ||
|} | |} | ||
Line 88: | Line 95: | ||
This class supports the '''Common events''' plus the following: | This class supports the '''Common events''' plus the following: | ||
− | {| class="wikitable" | + | {| class="wikitable" width=100% |
!width="20%"|Event | !width="20%"|Event | ||
!Args | !Args |
Revision as of 12:36, 8 January 2013
Note: property, method and event names should be referred to in lowercase in case-sensitive scripting languages.
Properties
This class supports the Common properties plus the following:
Property | Access (R/RW) | Value | Description |
---|---|---|---|
Text | RW | Character | Text displayed in the item |
Value | RW | Character | Value of the item |
Picture | RW | Character | Filename of image displayed |
Checkstate | RW | Boolean | Whether the item is checked or not |
Tooltiptext | RW | Character | Text displayed when mouse hovers over item |
Showchildindicator | RW | Boolean | Whether indicator should be displayed if item has child items |
ChildCount | R | Numeric | Number of child items below this item |
Methods
This class supports the Common methods plus the following:
Method | Args | Description |
---|---|---|
Additem | [icon as Character,] caption as Character | Add an item, specifying the item caption and optionally an icon filename |
Additems | selectstring as Character | items as Array[, icon as Character] | Add items based on an SQL SELECT query or from an array, optionally including an icon filename |
Addobject | existing as Object | newobject as Character, class as Character | Add an existing object or a new object, in which case the object's class must also be specified |
Removeobject | existing as Object | Remove the specified object |
Clear | None | Clear the item |
Expand | None | Expand the item to display any child items |
Collapse | None | Collapse the item to hide any child items |
Text | column as Numeric | Text displayed at the specified item column |
Events
This class supports the Common events plus the following:
Event | Args | Description |
---|