OWLNext 7.0
Borland's Object Windows Library for the modern age
|
After you create a list box, you need to fill it with list items (which must be strings).
Later, you can add, insert, or remove items or clear the list completely. The following table summarizes the member functions you use to perform these actions.
TListBox member functions for modifying list boxes
Member function | Description |
TListBox::ClearList | Delete every item. |
TListBox::DirectoryList | Put file names in the list. |
TListBox::AddString | Add an item. |
TListBox::InsertString | Insert an item. |
TListBox::DeleteString | Delete an item. |
TListBox::SetSelIndex, TListBox::SetSel, or TListBox::SetSelString | Select an item. |
TListBox::SetSelStrings, TListBox::SetSelIndexes, or TListBox::SetSelItemRange | Select multiple items. |
TListBox::SetTopIndex | Scroll the list box so the specified item is visible. |
TListBox::SetTabStops | Set tab stops for multicolumn list boxes. |
TListBox::SetHorizontalExtent | Set number of pixels by which the list box can scroll horizontally. |
TListBox::SetColumnWidth | Set width of all columns in multicolumn list boxes. |
TListBox::SetCaretIndex | Set index of the currently focused item. |
TListBox::SetItemData | Set a uint32 value to be associated with the specified index. |
TListBox::SetItemHeight | Set the height of item at the specified index or height of all items. |