Hi,
I'm having a problem with retrieving the text from a combobox. When i do the index of where the text is in the combobox is returned as well as the text.
My code is as follows:
//default video format
dirac_encoder_presets_t preset = VIDEO_FORMAT_CUSTOM;
//get the video format selected by the user
VideoFormat = FormatTypeComboBox->Text();
if(VideoFormat == "QCIF")
{
preset = VIDEO_FORMAT_QCIF;
}
The preset value is set to 3/*VIDEO_FORMAT_QCIF*/
where 3 is the index of VIDEO_FORMAT_QCIF.
I'm really baffled by this :rolleyes:
Can anybody help?
Thanks:)