<br><br><div class="gmail_quote">2009/12/1 Mattias Gaertner <span dir="ltr"><<a href="mailto:nc-gaertnma@netcologne.de">nc-gaertnma@netcologne.de</a>></span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
On Tue, 1 Dec 2009 13:55:32 +0100<br>
<div class="im">wile64 <<a href="mailto:wile64@gmail.com">wile64@gmail.com</a>> wrote:<br>
<br>
> 2009/12/1 Mattias Gaertner <<a href="mailto:nc-gaertnma@netcologne.de">nc-gaertnma@netcologne.de</a>><br>
><br>
> > On Mon, 30 Nov 2009 16:33:34 +0100<br>
> > wile64 <<a href="mailto:wile64@gmail.com">wile64@gmail.com</a>> wrote:<br>
> ><br>
> > > Hi,<br>
> > ><br>
> > > 1) I search to resize component when he load, like autosize but with my<br>
> > > parameters ?<br>
> ><br>
> > Do you search properties to define the autosizing (Anchors, Align,<br>
> > BorderSpacing, ChildSizing), or do you want to implement your own<br>
> > autosizing (OnResize event)?<br>
> ><br>
><br>
> Height is stored in design, on run-time, I search to redefine Height when<br>
> loading component,<br>
<br>
</div>Yes, that's called autosizing. You can use the LCL properties or you<br>
can use OnResize.<br>
For the Height of the Form itself you can use OnCreate or OnShow.<br>
<div class="im"><br></div></blockquote><div>It's a custom panel.<br> <br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class="im">
<br>
> I make solution like this, Height stored = false and I save Height in other<br>
> variable!<br>
<br>
</div>Height is stored by the LCL. You can not set stored = false (unless<br>
you change the LCL source code).<br>
<div class="im"><br>
<br>
> I'm not sure is good solution ?<br>
<br>
</div>Can you give some more details, what you want to do?<br>
<div class="im"><br></div></blockquote><div>Roll up panel with title<br> <br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class="im">
<br>
> > > 2) How to define region for accept client into Tpanel ?<br>
> ><br>
> > Maybe you mean the properties listed in the object<br>
> > inspector under ChildSizing? For example LeftRightSpacing.<br>
> ><br>
> ><br>
> AdjustClientRect work with anchoring, but in designer is not respected.<br>
> It is possible to restrict area for client in design and run time too ?<br>
<br>
</div>AdjustClientRect work the same under designtime and runtime. Under<br>
designtime you can drag the controls to some invalid positions, same as<br>
at runtime. The only difference is that at runtime the autosizing is<br>
done immediately, so you can not see the invalid positions. Same for<br>
Anchors.<br>
<div><div></div><div class="h5"><br></div></div></blockquote><div>Yes, but when add button for exemple, is possible to put out of marging defined in AdjustClientRect<br><br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div><div class="h5">
<br>
Mattias<br>
<br>
--<br>
_______________________________________________<br>
Lazarus mailing list<br>
<a href="mailto:Lazarus@lists.lazarus.freepascal.org">Lazarus@lists.lazarus.freepascal.org</a><br>
<a href="http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus" target="_blank">http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Laurent.<br><br>