ComboBox TextEditor and setInputRestrictions


#1

Is there an easy way to add input restrictions (setInputRestrictions?) to the ComboBox Text Editor that allows to change the ComboBox value? I want to make shure that the user can not enter ComboBox Text with special characters and i couldnt find a way to access the internal TextEditor.


#2

You’d have to override the LookAndFeel::createComboBoxTextBox method, I think.


#3

Totally overlooked that. Until now i thought the look and feel class just implements drawing stuff. this is exactly what i need. Thanks!