This time, I narrowed down the problem. And this time, it is (more or less) my fault. Ive created a prototype to add a new feature to an already existing window (with Listbox and TextArea) that leads to this trouble.
Xojo 2015r1 / El Capitan .6.
The conditions (Listbrow Properties before running the test code):
Two strings provided for the Headings
Fixed size: 400,160 ( fills the Listbox actual width)
The HTML (far below) is the data I decode and place the text between the bold tag into the Listbox headings, in a loop. To avoid OutOfBoundsException, I add a new Column in a line before
The code works fine and is not needed here because it is not really involved in the trouble.
Once the Headings are populated, I still have the horizontal scrollbar, an still my two columns, but no clue that there are much more rows (in fact 8) available, because the horizontal scrollbar is nearly totally filled. Fortunately, this window is user resizeable, and when I had the curious idea to enlarge it, Iw as able to see the remainding 6 columns.
Once I had that clue, I tried:
But this was not the answer to the trouble.
After a coffee, I tried:
LB_URLs.ColumnWidths = "100,100,100,100,100,100,100,100"
And all of a sudden, five and half columns in the Listbox were visible, the horizontal scrollbar shows there are rooms to move.
The trouble appears because I have an horizontal scrollbar and the Listbox.ColumnWidths does not holds fixed values.
Is this a know bug ? If so, you know the work-around.
The Xojo code below demonstrates the problem:
[code] Dim Col_Idx As Integer
For Col_Idx = 0 to 12
LB.Heading(Col_Idx) = “Foo”
LB.ColumnCount = LB_URLs.ColumnCount + 1
LB_URLs.ColumnWidths = “100,100,100,100,100,100,100,100”[/code]
Quite simple code. BUT remember the properties of the LB Listbox.