Listbox - How to set one or more columns to take remaing space?

Hello all,

I have a 3 column list box. I want to set Column 1 to X width, Column 3 to Y width, and Column 2 to take whatever is left over.
How do I do that?

Same with a 4 column list box. I want to set Column 1 to X width, Column 3 to Y width, and Columns 2 & 4 to take whatever is left over.
How do I do that?

Thanks
Tim

use a * instead of a specific width value when you set the column widths
http://documentation.xojo.com/index.php/ListBox.ColumnWidths

you might set column widths to
me.columnwidths = str(x) + “,*,” + str(y) // column 1 = x column 3 = Y and 2 = everything else

 me.columnwidths = str(x) + ",*," + str(y)  ",*" // column 1 = x column 3 = Y and 2 and 4 = everything else

Dang Norm! :stuck_out_tongue:

OK guess I don’t need to post the link to the docs

Get sleep now and then :stuck_out_tongue:

Sleep ?

Thanks guys!

Tim