PDA

View Full Version : Combobox - hiding the combo box leaves the Down Arrow showing - how to hide that



MadBeardMan
August 18th, 2019, 17:57
Folks,

28519

See on the left a Combobox is shown, but it's hidden on the right, but the DropDown arrow is showing (and works) - how can I hide that arrow.

The code that hides it is:


type.setVisible(bReadOnly == false);
type_label.setVisible(bReadOnly == false);

Cheers,
MBM

Moon Wizard
August 18th, 2019, 18:00
If you're doing anything with the combobox, you have to remember that it is a template that manages an amalgamation of controls, so you can't use the default window control APIs to manage it. Looking in the script itself, there is a "setComboBoxVisible" function that looks like it should do what you want.

Regards,
JPG

MadBeardMan
August 18th, 2019, 18:04
If you're doing anything with the combobox, you have to remember that it is a template that manages an amalgamation of controls, so you can't use the default window control APIs to manage it. Looking in the script itself, there is a "setComboBoxVisible" function that looks like it should do what you want.

Regards,
JPG

Spot on, worked a treat, cheers chap!


type.setComboBoxVisible(bReadOnly == false);
type_label.setVisible(bReadOnly == false);