TAdvTreeView.AutoColumnSize-Idea

Hi,

I want to AutoSize all columns in the TreeView and the last should be filled up with the rest.
There is an Option ColumnsApperance.Stretch which makes the "fill up" possible,
but when activated the procedure AutoSizeColumn doesn't work.
I used the AutoSizeColumn in AfterExpandNode and changed in AdvCustomTreeView.pas
in TAdvCustomTreeView.AutoSizeColumnInternal the lines from
---
if (ACol >= 0) and (ACol <= ColumnCount - 1) and not ColumnsAppearance.Stretch and NodeListBuild then
---
to
---
  if (NodeListBuild) AND (ACol >= 0) AND
     (
       ((ACol < ColumnCount) AND (not ColumnsAppearance.Stretch)) OR
       (ACol < ColumnCount - 1)
     ) then
---
it seems to work as expected. But I don't want to change your source (after update I have to do everything again and maybe it doesn't work anymore or make some problems (later) I can't see).
Is there an option you change the behavior of "AutoSizeColumn" and "ColumnsAppearance.Stretch"?
Or you can use my code!?

Greetings from germany

We'll investigate here what the possibilities are. We'll need to introduce a new property to control this as changing it might introduce other unwanted behavior.

I sadly see that it's not so easy and I think this position is quite remarkable, too.
So thanks a lot for this modification and sorry for the work I produce.
I hope others will like this option too.

Greetings from germany