Sign in Join

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

Mailing lists / lazarus / 2011-03

How to implement automatic sizing?

1 message · 1 person ·

Reply by email Subscribe to this list Your subscription

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

Hans-Peter Diettrich

When I e.g. want to automatically extend the last column of a list(view) to the available space (kind of alClient), how should I proceed?

The list columns have an AutoSize property, but it has the adverse effect of *shrinking* columns to the size of the header text. The list control has no AutoSize property - can I use that one to implement what I want? Or should I use ChildSizing - how?

And once I have choosen a property, what methods have to be added to the control?

BTW how comes that neither TControl nor TWinControl are listed in the unit 'Controls' Types in online help?

DoDi

Reply by email