Difference between revisions of "Combobox"
From Lianjapedia
Helen.george (Talk | contribs) |
Helen.george (Talk | contribs) |
||
Line 11: | Line 11: | ||
!width="50%"|Description | !width="50%"|Description | ||
|- | |- | ||
− | | | + | |ColumnCount |
|RW | |RW | ||
− | | | + | |Numeric |
− | | | + | |Number of columns |
|- | |- | ||
− | | | + | |ExtendItems |
|RW | |RW | ||
− | | | + | |Boolean |
− | | | + | |If True, extend items |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
|- | |- | ||
|ListCount | |ListCount | ||
Line 30: | Line 25: | ||
|Numeric | |Numeric | ||
|Number of items in the list | |Number of items in the list | ||
+ | |- | ||
+ | |ListIndex | ||
+ | |RW | ||
+ | |Numeric | ||
+ | |Current item index value | ||
|- | |- | ||
|Readonly | |Readonly | ||
Line 36: | Line 36: | ||
|If True, object cannot be modified | |If True, object cannot be modified | ||
|- | |- | ||
− | | | + | |RowSource |
|RW | |RW | ||
− | | | + | |Character |
− | | | + | |Row data source |
+ | |- | ||
+ | |RowSourceType | ||
+ | |RW | ||
+ | |Numeric | ||
+ | |Row data source type | ||
+ | |- | ||
+ | |Text | ||
+ | |RW | ||
+ | |Character | ||
+ | |Current item text value | ||
|- | |- | ||
|Validation | |Validation | ||
Line 51: | Line 61: | ||
|Message displayed if validation returns False | |Message displayed if validation returns False | ||
|- | |- | ||
− | | | + | |Value |
|RW | |RW | ||
− | + | |Character or numeric | |
− | + | |Current item text or index value | |
− | + | ||
− | + | ||
− | + | ||
− | |Character | + | |
− | | | + | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
|- | |- | ||
|} | |} | ||
Line 84: | Line 84: | ||
|selectstatement as Character | commalist as Character | pipelist as Character | items as Array[, icon as Character] | |selectstatement as Character | commalist as Character | pipelist as Character | items as Array[, icon as Character] | ||
|valign=top|Add the specified items: comma-separated list, pipe-separated list or elements of the specified array, optional including the filename of an icon. | |valign=top|Add the specified items: comma-separated list, pipe-separated list or elements of the specified array, optional including the filename of an icon. | ||
− | |||
− | |||
− | |||
− | |||
|- | |- | ||
|Clear | |Clear | ||
Line 96: | Line 92: | ||
|index as numeric | |index as numeric | ||
|Return the specified item | |Return the specified item | ||
+ | |- | ||
+ | |RemoveItem | ||
+ | |item as Character | index as Numeric | ||
+ | |Remove the specified object | ||
|- | |- | ||
|} | |} |
Revision as of 06:04, 30 April 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 |
---|---|---|---|
ColumnCount | RW | Numeric | Number of columns |
ExtendItems | RW | Boolean | If True, extend items |
ListCount | R | Numeric | Number of items in the list |
ListIndex | RW | Numeric | Current item index value |
Readonly | RW | Boolean | If True, object cannot be modified |
RowSource | RW | Character | Row data source |
RowSourceType | RW | Numeric | Row data source type |
Text | RW | Character | Current item text value |
Validation | RW | Character | String containing boolean expression to validate data entry |
ValidationErrorMessage | RW | Character | Message displayed if validation returns False |
Value | RW | Character or numeric | Current item text or index value |
Methods
This class supports the Common Methods plus the following:
Method | Args | 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. |
Clear | None | Remove all items |
List | index as numeric | Return the specified item |
RemoveItem | item as Character | index as Numeric | Remove the specified object |
Events
This class supports the Common Events plus the following:
Event | Args | Description |
---|