[Lazarus] How to create a listbox that can be shifted

José Mejuto joshyfun at gmail.com
Thu Apr 25 20:29:26 CEST 2013


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.

-- 





More information about the Lazarus mailing list