Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2010-04

How to enable Scrollbars in a custom drawn TListBox?

2 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Graeme Geldenhuys

Hi,

The Lazarus Build dialog has a problem that I tried to solve in Mantis report #9791.
The Listbox used is custom drawn (OwnerDraw enabled). I managed to make it so that you can resize the columns, but I don't know how to enable a scrollbar when the accumulated column width is more that the listbox.width. Any thoughts?

http://bugs.freepascal.org/view.php?id=9791

Regards, - Graeme - _______________________________________________ fpGUI - a cross-platform Free Pascal GUI toolkit http://opensoft.homeip.net/fpgui/

Reply by email

zeljko
to Graeme Geldenhuys
Graeme Geldenhuys wrote 8 lines
Hi, The Lazarus Build dialog has a problem that I tried to solve in Mantis report #9791. The Listbox used is custom drawn (OwnerDraw enabled). I managed to make it so that you can resize the columns, but I don't know how to enable a scrollbar when the accumulated column width is more that the listbox.width. Any thoughts?

LCLIntf.ShowScrollBar(MyListBox.Handle, SB_HORZ, true) but then you have to calculate scrollbar size too (pagesize etc) and use setScrollInfo().
But again, what about header ? it will not move with scrollbar

zeljko

Reply by email