[Lazarus] Centered elements in autosize enabled panel. Possible?

Avishai avishai.gore at gmail.com
Mon Nov 11 13:29:29 CET 2013


I don't *think* that will work.  TBevel is TGraphicControl so it's not a
"container".


On Mon, Nov 11, 2013 at 2:25 PM, Mattias Gaertner <nc-gaertnma at netcologne.de
> wrote:

> On Mon, 11 Nov 2013 14:18:53 +0200
> Valdas Jankūnas <zmuogs at gmail.com> wrote:
>
> > 2013.11.11 13:14, Mattias Gaertner rašė:
> > > On Mon, 11 Nov 2013 12:51:14 +0200
> > > Valdas Jankūnas <zmuogs at gmail.com> wrote:
> > >
> > >> 2013.11.11 06:06, Avishai rašė:
> > >> [...]
> > >>    I found why TBevel "doesn't want" shrink less than 50px: TBevel has
> > >> function "GetControlClassDefaultSize" where "Result.CY := 50;" is
> hardcoded.
> > >
> > > That's the default size of the control. The constraints are
> > > applied after.
> > >
> > > A TBevel can be shrinked to less than 50.
> >
> > It not shrinks when ChildSizing is being used (see screenshot).
>
> Your bevel has no content. Then the default size is used.
> Drop something into it.
>
> Mattias
>
>
> --
> _______________________________________________
> Lazarus mailing list
> Lazarus at lists.lazarus.freepascal.org
> http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
>



-- 
Shalom,
Avishai
avishai.gore at gmail.com
אבישי גוֹר
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20131111/986fc3a8/attachment-0003.html>


More information about the Lazarus mailing list