A StringList corresponding to the Text of the Listitems. Use this function to add items to the list, Since StringList is of type VDKValueList<VDKString> you can use all functions of VDKValueList to manipulate the list. It is very convenient to access the StringList by index: int sel = mycombo->Selected;
char *seltext = (sel == -1) ? "None" :
(char*)(mycombo->GetPopdownStrings())[sel];
printf("Selected item is %s\n",seltext);
- Tip
- Note the use of the get function GetPopdownStrings() instead of the property because it was used within an expression.
mycombo->PopdownStrings[sel];
would result in a compilation error. You can however use a typecast:
|