
This class is a list widget that allows displaying items in a scrollable window.


Constructor.
| Argument | Type | Default | Description |
| p | FXComposite | Parent widget. | |
| nvis | Int | Number of visible items. | |
| 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. |

Adds a new item to the end of the list.
| Argument | Type | Default | Description |
| text | String | ||
| icon | FXIcon | None | |
| sel | Int | 0 |

Returns the index of the first item with the associated data or -1 if not found.
| Argument | Type | Default | Description |
| data |

Returns the index of the uniquely selected item. If more than one item or no items are selected, returns -1.

Inserts a new item at the given index.
| Argument | Type | Default | Description |
| index | Int | ||
| text | String | ||
| icon | FXIcon | None | |
| sel | Int | 0 |

Replaces the item at the given index.
| Argument | Type | Default | Description |
| index | Int | ||
| text | String | ||
| icon | FXIcon | None | |
| sel | Int | 0 |

Sets the auto-commit option for handling double clicks. This option is turned on by default.
| Argument | Type | Default | Description |
| commit | Bool |