El 25/04/2013 17:01, Jürgen Hestermann escribió:
I think I played already with this but nothing changed (I set
TListBox.ScrollWidth to arbitrary high values).
And even if it works, would I have to scan all string widths after each
change to find the widest string and then set TListBox.ScrollWidth to it?
That would be very awkward.
Hello,
That's exactly what the operative system do in autosize columns, but
usually only in additions, so you only store the largest one and the one
that would add, if the new one is larger, scroll is adjusted, if
smaller, nothing is done until a full autosize is requested.
--
--
_______________________________________________
Lazarus mailing list
[email protected]
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus