In my GUI, I have a TGComboBox with two possible values:
Later, I want to change the selected value within the script, using the function Select.
This works fine if the TGComboBox is not editable. However, if I define the constructor editable, then the function Select does not update in the GUI the top value shown. It still shows the predefined value in the constructor.
box = new TGComboBox(frame,"predefinedvalue")
When I click on the box, the “newvalue” is highlighted in the list, but is not show in the top position (is not visible when unclicking). Is this an expected behaviour? How do I manage to move it to the top, as when I click it normally from the GUI instead of command line?