Board index » delphi » TListView and Horizontal Scroll Bar

TListView and Horizontal Scroll Bar

Hi All,

I'm trying to make a TListView LOOK like a tabbed TCheckList control.
I have the ViewStyle set to vsReport and the RowSelect set to True.
I'm having trouble dynamically adjusting column widths to fill the
client area.  I can't figure out how to reliably adjust each column's
width without the horizontal scroll bars displaying.  I've tried using
the ClientWidth property and adjusting each columns width as a
percentage, but it doesn't seem to work.

How can I either turn off the horizontal scroll bars or properly
adjust the columns?

Thanks,
Steve

 

Re:TListView and Horizontal Scroll Bar


Quote
"Steve Harp" <kil...@harpservices.com> wrote in message

news:lmvj1vgcqtrlfdo4nrk81mdiiso9ei5c2b@4ax.com...

Quote
> I have the ViewStyle set to vsReport and the RowSelect set to True.
> I'm having trouble dynamically adjusting column widths to fill the
> client area.  I can't figure out how to reliably adjust each column's
> width without the horizontal scroll bars displaying.  I've tried using
> the ClientWidth property and adjusting each columns width as a
> percentage, but it doesn't seem to work.

What isn't working? I have done this recently and it works for me but I obly
have one column.

Do you get a scroll bar that is indicating a consistant size greater than
your list view? How are you working out your percentages to determine the
column widths?

Other Threads