Jim Wagner
2017-02-14 21:42:25 UTC
Greetings
I have a ListBox with a variable number of columns. The left-most has a width of 100 and all the others are “*”.
For the first few rows, when there is no vertical scroll bar, I can get the the widths of the right columns from (me.width - 100)/(me.ColumnCount-1). Close enough.
But, how do I do it when the vertical scroll bar gets added? I could subtract a constant from the width when I have some indication that the scroll bar is there, but I don’t know how to know that (scroll bar presence) at runtime.
I don’t see a width property for individual cells, though the CellBackgroundPaint event seems to know. Don’t find a width property for columns, either.
What I am trying to do is add some TextFields, below certain columns, said TextFields are to be drawn with the same width as the column that above it, so I need column sizes!
So, I could really use some help here.
Many thanks
Jim
James Wagner
Oregon Research Electronics
http://www.orelectronics.net <http://www.orelectronics.net/>
_______________________________________________
Xojo f
I have a ListBox with a variable number of columns. The left-most has a width of 100 and all the others are “*”.
For the first few rows, when there is no vertical scroll bar, I can get the the widths of the right columns from (me.width - 100)/(me.ColumnCount-1). Close enough.
But, how do I do it when the vertical scroll bar gets added? I could subtract a constant from the width when I have some indication that the scroll bar is there, but I don’t know how to know that (scroll bar presence) at runtime.
I don’t see a width property for individual cells, though the CellBackgroundPaint event seems to know. Don’t find a width property for columns, either.
What I am trying to do is add some TextFields, below certain columns, said TextFields are to be drawn with the same width as the column that above it, so I need column sizes!
So, I could really use some help here.
Many thanks
Jim
James Wagner
Oregon Research Electronics
http://www.orelectronics.net <http://www.orelectronics.net/>
_______________________________________________
Xojo f