showing initial data in combobox

Forums for specific tips, techniques and example code
Jay
Posts: 25
Joined: Mon Jul 23, 2018 10:15 am

showing initial data in combobox

Postby Jay » Sun Oct 07, 2018 8:09 pm

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 .

Stokes
Posts: 66
Joined: Wed Oct 13, 2010 2:06 pm
Location: QLD, Australia

Re: showing initial data in combobox

Postby Stokes » Mon Oct 08, 2018 9:31 am

I think what you are after is something like:

comboBox.listIndex := 1;

that will show the first item in the combo

User avatar
BeeJay
Posts: 311
Joined: Tue Jun 30, 2009 2:42 pm
Location: Christchurch, NZ

Re: showing initial data in combobox

Postby BeeJay » Mon Oct 08, 2018 11:00 am

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.


Return to “Tips and Techniques”

Who is online

Users browsing this forum: No registered users and 5 guests

cron