
List Widget


Construct a list with nvis visible items; the list is initially empty.
| Argument | Type | Default | Description |
| p | FXComposite | ||
| nvis | Int | ||
| tgt | FXObject | None | |
| sel | Int | 0 | |
| opts | Int | LIST_NORMAL | |
| x | Int | 0 | |
| y | Int | 0 | |
| w | Int | 0 | |
| h | Int | 0 |

Append new item with given text and optional icon, and user-data pointer.
| Argument | Type | Default | Description |
| text | String | ||
| icon | FXIcon | None | |
| ptr | String | None | |
| notify | Bool | False |

Append a [possibly subclassed] item to the list.
| Argument | Type | Default | Description |
| item | FXListItem | ||
| notify | Bool | False |

Remove all items from list.
| Argument | Type | Default | Description |
| notify | Bool | False |

Deselect item.
| Argument | Type | Default | Description |
| index | Int | ||
| notify | Bool | False |

Search items for item by name, starting from start item; the flags argument controls the search direction, and case sensitivity.
| Argument | Type | Default | Description |
| text | String | ||
| start | Int | -1 | |
| flags | Int | SEARCH_FORWARD| SEARCH_WRAP |

Return default height.
Reimplemented from FXScrollArea.
Reimplemented in AFXList.

Insert item at index with given text, icon, and user-data pointer.
| Argument | Type | Default | Description |
| index | Int | ||
| text | String | ||
| icon | FXIcon | None | |
| ptr | String | None | |
| notify | Bool | False |

Insert a new [possibly subclassed] item at the give index.
| Argument | Type | Default | Description |
| index | Int | ||
| item | FXListItem | ||
| notify | Bool | False |

Return True if item is selected.
| Argument | Type | Default | Description |
| index | Int |

Return True if item is visible.
| Argument | Type | Default | Description |
| index | Int |

Deselect all items.
| Argument | Type | Default | Description |
| notify | Bool | False |

Scroll to bring item into view.
| Argument | Type | Default | Description |
| index | Int |

Remove item from list.
| Argument | Type | Default | Description |
| index | Int | ||
| notify | Bool | False |

Replace items text, icon, and user-data pointer.
| Argument | Type | Default | Description |
| index | Int | ||
| text | String | ||
| icon | FXIcon | None | |
| ptr | String | None | |
| notify | Bool | False |

Replace the item with a [possibly subclassed] item.
| Argument | Type | Default | Description |
| index | Int | ||
| item | FXListItem | ||
| notify | Bool | False |

Return the item at the given index.
| Argument | Type | Default | Description |
| index | Int |

Select item.
| Argument | Type | Default | Description |
| index | Int | ||
| notify | Bool | False |

Change current item.
| Argument | Type | Default | Description |
| index | Int | ||
| notify | Bool | False |

Change item user-data pointer.
| Argument | Type | Default | Description |
| index | Int | ||
| ptr | String |

Change item icon.
| Argument | Type | Default | Description |
| index | Int | ||
| icon | FXIcon |

Change item text.
| Argument | Type | Default | Description |
| index | Int | ||
| text | String |

Change the number of visible items.
| Argument | Type | Default | Description |
| nvis | Int |

List styles
| LIST_EXTENDEDSELECT | Extended selection mode allows for drag-selection of ranges of items. |
| LIST_SINGLESELECT | Single selection mode allows up to one item to be selected. |
| LIST_BROWSESELECT | Browse selection mode enforces one single item to be selected at all times. |
| LIST_MULTIPLESELECT | Multiple selection mode is used for selection of individual items. |
| LIST_AUTOSELECT | Automatically select under cursor. |