I have a VST with 3 columns that evenly take the available space.
- I have set
hoAutoSpring
in Header.Options, and - all columns have Column[x].Option have
coAutoSpring
set.
Now I want to be able to hide the last column and maintain that the other columns evenly take the free space (a little bit like a control with alClient
).
When I only set the column invisible (see below) the space that was taken by the column is then simply unused.
VST.Header.Columns[2].Options:=VST.Header.Columns[2].Options - [coVisible];
When I set Header.Options.hoAutoResize to True and set Header.AutoSizeIndex to 1
, then the 2nd Column will take all the new space.
Is there a method to tell the columns to fill up the available space and resize evenly?
Screenshot:
AutoFitColumns
withsmaAllColumns
does not show the behaviour I expected. I deleted my answer. – Salomo