Difference between revisions of "Combobox"
From Lianjapedia
Yvonne.milne (Talk | contribs) m (Yvonne.milne moved page Visage Application Framework - Combobox to Combobox without leaving a redirect) |
Helen.george (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==== | ||
| Line 11: | Line 13: | ||
|Text | |Text | ||
|RW | |RW | ||
| − | | | + | |Character |
| − | | | + | |Current item text value |
|- | |- | ||
|Value | |Value | ||
|RW | |RW | ||
| − | | | + | |Character or numeric |
| − | | | + | |Current item text or index value |
|- | |- | ||
| − | | | + | |ListIndex |
|RW | |RW | ||
| − | | | + | |Numeric |
| − | | | + | |Current item index value |
|- | |- | ||
| − | | | + | |ListCount |
|R | |R | ||
| − | | | + | |Numeric |
| − | |Number of items | + | |Number of items in the list |
|- | |- | ||
|Readonly | |Readonly | ||
|RW | |RW | ||
| − | | | + | |Boolean |
| − | | | + | |If True, object cannot be modified |
|- | |- | ||
| − | | | + | |ExtendItems |
|RW | |RW | ||
| − | | | + | |Boolean |
| − | | | + | |If True, extend items |
|- | |- | ||
|Validation | |Validation | ||
|RW | |RW | ||
| − | | | + | |Character |
| − | | | + | |String containing boolean expression to validate data entry |
| + | |- | ||
| + | |ValidationErrorMessage | ||
| + | |RW | ||
| + | |Character | ||
| + | |Message displayed if validation returns False | ||
| + | |ColumnCount | ||
| + | |RW | ||
| + | |Numeric | ||
| + | |Number of columns | ||
| + | |- | ||
| + | |RowSource | ||
| + | |RW | ||
| + | |Character | ||
| + | |Row data source | ||
|- | |- | ||
| − | | | + | |RowSourceType |
|RW | |RW | ||
| − | | | + | |Numeric |
| − | | | + | |Row data source type |
|- | |- | ||
|} | |} | ||
| Line 60: | Line 76: | ||
!width="50%"|Description | !width="50%"|Description | ||
|- | |- | ||
| − | | | + | |AddItem |
| − | | | + | |item as Character |
| − | | | + | |Add the specified item |
|- | |- | ||
| − | | | + | |AddItems |
| − | | | + | |selectstatement as Character | commalist as Character | pipelist as Character | items as Array[, icon as Character] |
| − | | | + | |Add the specified items: comma-separated list, pipe-separated list or elements of the specified array, optional including the filename of an icon. |
|- | |- | ||
| − | | | + | |RemoveItem |
| − | | | + | |item as Character | index as Numeric |
| − | | | + | |Remove the specified object |
|- | |- | ||
|Clear | |Clear | ||
| − | | | + | |None |
| − | | | + | |Remove all items |
|- | |- | ||
|List | |List | ||
| − | | | + | |index as numeric |
| − | | | + | |Return the specified item |
|- | |- | ||
|} | |} | ||
Revision as of 07:16, 21 December 2012
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 | Current item text value | ||||
| Value | RW | Character or numeric | Current item text or index value | ||||
| ListIndex | RW | Numeric | Current item index value | ||||
| ListCount | R | Numeric | Number of items in the list | ||||
| Readonly | RW | Boolean | If True, object cannot be modified | ||||
| ExtendItems | RW | Boolean | If True, extend items | ||||
| Validation | RW | Character | String containing boolean expression to validate data entry | ||||
| ValidationErrorMessage | RW | Character | Message displayed if validation returns False | ColumnCount | RW | Numeric | Number of columns |
| RowSource | RW | Character | Row data source | ||||
| RowSourceType | RW | Numeric | Row data source type |
Methods
This class supports the Common methods plus the following:
| Method | Args | Description |
|---|---|---|
| AddItem | item as Character | Add the specified item |
| AddItems | commalist as Character | pipelist as Character | items as Array[, icon as Character] | Add the specified items: comma-separated list, pipe-separated list or elements of the specified array, optional including the filename of an icon. |
| RemoveItem | index as Numeric | Remove the specified object |
| Clear | None | Remove all items |
| List | index as numeric | Return the specified item |
Events
This class supports the Common events plus the following:
| Event | Args | Description |
|---|