Climbing the learning mountain of TVirtualTreeView, I'm attempting to create a custom descendant that ensures that, when the control is resized, the width of the last column exactly fills control's width without requiring a horizontal scroll bar.
I see a number of items (a method and a number of events) pertaining to "AutoFitColumns", but not documentation covering this feature. Can I use AutoFitColumns to automatically resize my last column and if so, how.
With your virtualtreeview, and a couple headers visible....
Select the "virtualtreeview | Header" in the delphi object inspector and Set the AutoSizeIndex to the the index of your last column.
Now select "virtualtreeview | Header | Options" and make sure hoAutoResize is TRUE.
hope this helps
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With