The ListBoxEx widget.
The ListBoxEx widget. A ListBoxEx is a widget for displaying lists of items. It provides many modes of operation. By default it behaves like a plain single column list box like the one found in the default Allegro GUI. But it can also accept an arbitrary number of column that can be interactively resized. It can behave as a normal single select list where only one item at a time is selected, or as a multi select list where any number of items can be selected. Column headers can be forcefully turned off if required. Clicking a column header automatically sorts the list lexicographically according to the selected column. Both the item and the header classes can be easily extended to support custom look, feel and behaviour.ListBoxEx sends MSG_SCROLL to the parent dialog whenever the selection changes with the index of the selected item as the first argument to the HandleEvent() function. When an item is double clicked (or single clicked if the single click option is turned on), or the enter or space keys are pressed, MSG_ACTIVATE is sent with the index of the item that was activated as the first argument. MSG_ACTIVATE can be overridden with a custom message with the Wiget::SetCallback() function.
Note: If a column hadn't been added to the listbox yet, one will be created automatically.
Alphabetic index Hierarchy of classes