[Lazarus] AutoSize Label Height during construction

Mattias Gaertner nc-gaertnma at netcologne.de
Tue Dec 18 14:00:44 CET 2012


Rimmert Ooink <lazarus at ooink.net> hat am 18. Dezember 2012 um 13:29 geschrieben:

> Hello List,
>
>  I want to show a form with a label. The form height depends on the amount of
> text it has to display.
>
>  The problem is: the label doesn't resize while the form is not visible.
>
>  How can i get the size of the label will be before it is visible?

All needed data for that is created when showing (=becoming visible) the form.
Use the OnResize event.

Mattias




More information about the Lazarus mailing list