I have a TListView named lvwTrg with the following settings:
AutoWidthLastColumn = False, Columns = 1, CheckBoxes = False, SmallImages is assigned, ScrollBars = ssBoth, ViewStyle = vsList
The width of the single column is "stuck" at 58 (It reverts to 58 if I try to change it in the IDE). It's AutoSize is set to False;
So, I set the column width at runtime programatically like this:
lvwTrg.Column[0].Width := 250;
Result:
The lvwTrg draws the 860 items in what I call "newspaper column" layout, filling the leftmost column vertically to the bottom of the window, then the next column from top to bottom, and so on, for about 50 colums and I use the horizontal scrollbar along the bottom to scroll to the right, to see all the columns.
This is what I want. Works correctly.
Problem:
The column width setting of 250 is not obeyed. The colums are drawn only to about 75 pixels wide, so most of the item names are truncated with "..."
I have other TListviews with the exact same setting except for the "SmallImages", which draw the column width to the width that I set programmatically.
It's as if assigning the SmallImages causes the programatic setting of 250 wide to be ignored.
Question:
How do I get the TListView to obey my width setting of 250 pixels?
Platform: Lazarus 1.8.1, FPC 3.0.5