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

Jürgen Hestermann juergen.hestermann at gmx.de
Thu Apr 25 17:01:43 CEST 2013


Am 2013-04-25 09:40, schrieb zeljko:
 > On 04/25/2013 09:34 AM, Sven Barth wrote:
 >> So one might need to adjust the TListBox implementation to support this
 >> as well (and I simply assume for now that the other widgetsets also
 >> support a horizontal scrollbar in a list box...).
 > Afair in lazarus TListBox.ScrollWidth := Canvas.textWidth(longeststring) works (at least with qt widgetset).

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.




More information about the Lazarus mailing list