ListBox resizable columns

I have a listbox with 12 columns.
The 6 left columns all have a width value > 0
The 6 right columns all have a width of 0, so they are not shown when opening the listbox.
The listbox behavior ‘Allow Resizable Columns’ is set to Yes.
The problem is that the non visible columns can also be made visible and resized by the user.
Is there a way to make these columns non resizable ?

Thanks
Etienne

Listbox.ColumnAt(0).UserResizable = false
DesktopListbox.ColumnAttributesAt(0).UserResizable = false

DesktopListboxColumn Documentation

1 Like

Hi Tim,
Thanks for this solution. It works perfect, also in XOJO 21r11.
The only small thing that needs attention is that the last column that has UserResizable set to true must be the last visible column - 1, all the other columns are set to False.

It are the number of intersections between the columns that are in count.

Regards
Etienne

I think I did a bad explanation in my reply.
The last visible column is resizable because the column just before is resizable.

Glad to have helped!

If you click the word ☑️ Solution below my post, it will flag the thread as solved on the topic list :slight_smile:

I have no idea you can set individual column non resizeable!!! and I have been using for nearly 20 years

3 Likes