Page 1 of 1
showing initial data in combobox
Posted: Sun Oct 07, 2018 8:09 pm
by Jay
additem only shows when I click the combobox. If I want to see the certain number or string first before I click the combobox, what class or methods should I use? I couldn't find proper ways after reading jadeworld documentation.
thank you .
Re: showing initial data in combobox
Posted: Mon Oct 08, 2018 9:31 am
by Stokes
I think what you are after is something like:
comboBox.listIndex := 1;
that will show the first item in the combo
Re: showing initial data in combobox
Posted: Mon Oct 08, 2018 11:00 am
by BeeJay
Further to the reply from Stokes, you could also set the ComboBox::text property to the desired 'initial' value, saves having to work out what ComboBox::listIndex value you should use for that desired 'initial' value.
Cheers,
BeeJay.