Scrollbars in TGListBox

Hi,

somehow I can’t make to show an horizontal scrollbar of a TGListBox. I thought that would be possible by accessing its TViewPort ?

A simple example is attached.

Thanks and cheers,
Sergio
simple.C (1.96 KB)

Hi Sergio,

It is actually not implemented, and not simple to add a horizontal scrollbar to a list box. One solution would be to subclass TGListBox and add a TGHScrollBar (like in TGCanvas), or to embed the list box in a TGCanvas (but this would not be very elegant…). I’ll see what could be done.

Cheers, Bertrand.

Hi -

I am just wondering whether there was any solution for this - I have a similar problem. Alternatively is there a way to wrap text if it reaches the right hand border of the box?

thanks