Reset Combo box


I want to reset Comboxbox to setTextWhenNothingSelected once I am done selecting the item and printing it on the TextEditor. (Just like resetting the toggle button).

Is there anyway to do this?

Not sure I understood you correctly but maybe this is what you’re looking for.

class MyClass : public ComboBox::Listener, [...]


void MyClass::comboBoxChanged (ComboBox *comboBoxThatHasChanged)
  if (comboBoxThatHasChanged == &comboBox)
    testEditor.getText(comboBox.getText(), false);
    comboBox.setSelectedId(0, false);


Thanks a lot. This is what I was looking for. I should I have checked the function properly before asking.

Thanks again.