OWLNext 7.0
Borland's Object Windows Library for the modern age
|
Because list boxes need to transfer several pieces of information (strings, item data, and selection indexes), the transfer buffer uses a class called TListBoxData.
TListBoxData has several data members to hold the list box information:
TListBoxData data members
Data member | Type | Description |
TListBoxData::ItemDatas | TUint32Array* | Contains the item data uint32 for each item in the list box. |
TListBoxData::SelIndices | TIntArray* | Contains the indexes of each selected string (in a multiple-selection list box). |
TListBoxData::Strings | TStringArray* | Contains all the strings in the list box. |
TListBoxData also has the following member functions to manipulate the list box data:
Member function | Description |
TListBoxData::AddItemData | Adds item data to the ItemDatas array. |
TListBoxData::AddString | Adds a string to the Strings array, and optionally selects it. |
TListBoxData::AddStringItem | Adds a string to the Strings array, optionally selects it, and adds item data to the ItemDatas array. |
TListBoxData::GetSelString | Get the selected string at the given index. |
TListBoxData::GetSelStringLength | Returns the length of the selected string at the given index. |
TListBoxData::ResetSelections | Removes all selections from the SelIndices array. |
TListBoxData::Select | Selects the string at the given index. |
TListBoxData::SelectString | Selects the given string. |