<div dir="ltr">You may be looking for TForm.AutoSize, TPanel.AutoSize...<br><br><div class="gmail_quote">On Mon, Jan 21, 2013 at 9:19 PM, Mark Morgan Lloyd <span dir="ltr"><<a href="mailto:markMLl.lazarus@telemetry.co.uk" target="_blank">markMLl.lazarus@telemetry.co.uk</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">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?<br>
<br>
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.<br>
<br>
The particular case that I'm thinking of is a modal form I've knocked together to get database login information. This is a notebook which allows the server, port number, SSL mode, schema/table identifier etc. to be collected, as well as the standard username and password. But it would also be useful to be able to embed two of these into something (i.e. one for a local database and one for an upstream one), which suggests that redoing it as a frame would be a worthwhile approach /provided/ that a container could be fitted trivially around it without having to maintain conditional "fudge factors".<span class="HOEnZb"><font color="#888888"><br>
<br>
-- <br>
Mark Morgan Lloyd<br>
markMLl .AT. <a href="http://telemetry.co" target="_blank">telemetry.co</a> .DOT. uk<br>
<br>
[Opinions above are the author's, not those of his employers or colleagues]<br>
<br>
--<br>
______________________________<u></u>_________________<br>
Lazarus mailing list<br>
<a href="mailto:Lazarus@lists.lazarus.freepascal.org" target="_blank">Lazarus@lists.lazarus.<u></u>freepascal.org</a><br>
<a href="http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus" target="_blank">http://lists.lazarus.<u></u>freepascal.org/mailman/<u></u>listinfo/lazarus</a><br>
</font></span></blockquote></div><br><br clear="all"><div><br></div>-- <br>Shalom,<br>Avishai<br><a href="mailto:avishai.gore@gmail.com">avishai.gore@gmail.com</a><br>אבישי גוֹר
</div>