[Lazarus] 2 questions about Component properties

wile64 wile64 at gmail.com
Tue Dec 1 13:55:32 CET 2009


2009/12/1 Mattias Gaertner <nc-gaertnma at netcologne.de>

> On Mon, 30 Nov 2009 16:33:34 +0100
> wile64 <wile64 at gmail.com> wrote:
>
> > Hi,
> >
> > 1) I search to resize component when he load, like autosize but with my
> > parameters ?
>
> Do you search properties to define the autosizing (Anchors, Align,
> BorderSpacing, ChildSizing), or do you want to implement your own
> autosizing (OnResize event)?
>

Height is stored in design, on run-time, I search to redefine Height when
loading component,

I make solution like this, Height stored = false and I save Height in other
variable!
I'm not sure is good solution ?


>

> > 2) How to define region for accept client into Tpanel ?
>
> Maybe you mean the properties listed in the object
> inspector under ChildSizing? For example LeftRightSpacing.
>
>
AdjustClientRect work with anchoring, but in designer is not respected.
It is possible to restrict area for client in design and run time too ?


> Mattias
>
>
> --
> _______________________________________________
> Lazarus mailing list
> Lazarus at lists.lazarus.freepascal.org
> http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
>



-- 
Laurent.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20091201/15c2ae08/attachment-0004.html>


More information about the Lazarus mailing list