[Lazarus] Shrink-fitting a form around its content
Hans-Peter Diettrich
DrDiettrich1 at aol.com
Tue Jan 22 02:01:45 CET 2013
Mark Morgan Lloyd schrieb:
>> Note: A TFrame does not have any furniture. Window size is Client size
>> on all platforms.
>
> In the case of a TFrame, yes. But I was thinking of the form case where
> there are- if my experience is reliable- significant differences between
> the Windows and X way of doing things.
The NC (non-client) parts of a form vary with every OS, widgetset,
themes and other factors (auto-scrollbars...). When you turn of all
automatisms, the NC area can be computed from the form Bounds and
ClientRect area - provided that Lazarus does support that difference for
forms now.
DoDi
More information about the Lazarus
mailing list