ComboBoxes and tabbing

Hi,
When dealing with comboboxes, after selecting a certain item how can I make a list box to return to a state where no item is been selected, i.e is there a way of including a list box item which is just an empty space, like I have seen in web pages’ list boxes?
Also, still on the GUI, suppose I want to have some text displayed on the frame using TGLabel, consisting of sections and subsections, how can I tab the subsections?

Cheers.

Hi,

Could you try: yourComboBox->Select(-1, kFALSE); And let me know if it works for you?

OK, as you edited it while I was posting my reply, concerning “tab the subsections”, you have to use the appropriate layout manager (e.g. TGMatrixLayout or TGTableLayout)…

Cheers, Bertrand.

Hi,
Well, it didn’t work or maybe I used it incorrectly. But then when adding the items to the list box I replaced the first string item (to be displayed as the first entry) as an empty string and it worked fine;
maybe I was too lazy to think about it at first :slight_smile: .
Thank you for the help bellenot.

Cheers.

You’re welcome! :slight_smile:

Cheers, Bertrand.