Board index » delphi » H Scrollbar in ListBox?

H Scrollbar in ListBox?

Is there any way to scroll horizontally in a list box?

I can't seem to find a way to do it anywhere!

Thanx.

GL

 

Re:H Scrollbar in ListBox?


I wasn't quite correct in my last message.  The Windows API supports
hortz scroll bars.

You will need to create a class based on TListBox and override the
CreateParams procedure. You will then need to OR in ws_HScroll in the
style field. You will also need to find the longest string and set the
scroll length accordingly.

The example is on p270-273 of the book (Delphi Developer's Guide).

Kevin

Other Threads