On Mon, 21 Jan 2013 20:49:25 +0000 Mark Morgan Lloyd <[email protected]> wrote:
> Mattias Gaertner wrote: > > On Mon, 21 Jan 2013 19:19:24 +0000 > > Mark Morgan Lloyd <[email protected]> wrote: > > > >> If I have something like a frame containing a wizard-style notebook, or > >> for that matter something like a DB-aware grid tailored to its content, > >> is there a portable way to fit a form or some other container around it? > > > > Put frame on a form and set the form's AutoSize to true. > > Thanks, I'll experiment. Is that specifically a form property or is it > possible to do the same for e.g. a page control or a panel? TPanel, yes. TPageControl, no. > >> The problem seems to be that each OS or widget set has a different > >> amount of "furniture" between its declared dimensions and its client space. > > > > 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. Yes. I guess there are still some window managers, where form.autosize does not work well. But the other way round - autosizing the content - works always. Mattias -- _______________________________________________ Lazarus mailing list [email protected] http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
