garrynewman / GWEN

Abandoned: GWEN - GUI Without Extravagant Nonsense.
MIT License
427 stars 102 forks source link

ComboBox selected item name is null #79

Closed q-depot closed 11 years ago

q-depot commented 11 years ago

Hi,

I'm trying to use the selected item and eventually select another one. GetSelectedItem return a label without the name, SelectItemByName then doesn't produce any results.

Gwen::Controls::Label *selectedLabel = mComboBox->GetSelectedItem(); selectedLabel->GetName(); // this is empty

EDIT: I realised that I need to pass label and name when I add the item.