Re: Can a Delphi TListBox scroll horizontally too?

Posted by Jenny, DelphiLand Team on August 18, 2008

In Reply to Re: Can a TListBox scroll horizontally too? posted by Lee P12462 on August 16, 2008

: I am using Delphi7. Yes, I do have a ScrollWidth but when changed the value (from 0), the horizontal scroll bar did not appear. Maybe I didn't increase it enough.

To make sure that the horizontal scrollbar appears, set ListBox.ScrollWidth to a value larger than the width of the ListBox.

Sometimes it also works if ScrollWith is equal to or even "just a little" bit smaller, but I did'n discover any logic in this, so you'd better always set it larger than ListBox.Width.

Best regards,
Jenny, DelphiLand Team

Related articles


Follow Ups