This class contains a label that precedes a list box, which allows the user to select entries from a drop-down list.
Constructor.
Argument | Type | Default | Description |
p | FXComposite | Parent widget. | |
nvis | Int | Number of visible items. | |
labelText | String | Label string. | |
tgt | FXObject | None | Message target. |
sel | Int | 0 | Message ID. |
opts | Int | 0 | Options and hints. |
x | Int | 0 | X coordinate of origin. |
y | Int | 0 | Y coordinate of origin. |
w | Int | 0 | Width of the widget. |
h | Int | 0 | Height of the widget. |
pl | Int | DEFAULT_PAD | Left padding (margin). |
pr | Int | DEFAULT_PAD | Right padding (margin). |
pt | Int | DEFAULT_PAD | Top padding (margin). |
pb | Int | DEFAULT_PAD | Bottom padding (margin). |
Adds an item to the end of the list.
Argument | Type | Default | Description |
text | String | ||
icon | FXIcon | None | |
sel | Int | 0 |
Returns the data for the specified item.
Argument | Type | Default | Description |
index | Int |
Returns the index of the first item with the associated data or -1 if not found.
Argument | Type | Default | Description |
data |
Inserts a new item at the specified index position.
Argument | Type | Default | Description |
index | Int | ||
text | String | ||
icon | FXIcon | None | |
sel | Int | 0 |
Returns True if the item at the specified index position is the current item.
Argument | Type | Default | Description |
index | Int |
Removes the item at the specified index position from the list.
Argument | Type | Default | Description |
index | Int |
Replaces the item at the specified index position.
Argument | Type | Default | Description |
index | Int | ||
text | String | ||
icon | FXIcon | None | |
sel | Int | 0 |
Sets the current item. (The index is zero-based).
Argument | Type | Default | Description |
index | Int | ||
notify | Bool | False |
Sets the data for the specified item.
Argument | Type | Default | Description |
index | Int | ||
ptr | String |
Sets the number of visible items.
Argument | Type | Default | Description |
nvis | Int |