OWLNext    7.0
Borland's Object Windows Library for the modern age
Loading...
Searching...
No Matches
List Box Transfer

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 memberTypeDescription
TListBoxData::ItemDatasTUint32Array*Contains the item data uint32 for each item in the list box.
TListBoxData::SelIndicesTIntArray*Contains the indexes of each selected string (in a multiple-selection list box).
TListBoxData::StringsTStringArray*Contains all the strings in the list box.

TListBoxData also has the following member functions to manipulate the list box data:

Member functionDescription
TListBoxData::AddItemDataAdds item data to the ItemDatas array.
TListBoxData::AddStringAdds a string to the Strings array, and optionally selects it.
TListBoxData::AddStringItemAdds a string to the Strings array, optionally selects it, and adds item data to the ItemDatas array.
TListBoxData::GetSelStringGet the selected string at the given index.
TListBoxData::GetSelStringLengthReturns the length of the selected string at the given index.
TListBoxData::ResetSelectionsRemoves all selections from the SelIndices array.
TListBoxData::SelectSelects the string at the given index.
TListBoxData::SelectStringSelects the given string.

See Also