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

Avishai avishai.gore at gmail.com
Sun Nov 10 23:09:10 CET 2013


Hmmm.  I tried setting TBevel .borderSpacing.Around:= 4 and it suddenly
"corrected" itself.  I'm not too sure I trust that approach but you can
play with it and see.


On Mon, Nov 11, 2013 at 12:01 AM, Valdas Jankūnas <zmuogs at gmail.com> wrote:

> 2013.11.10 23:03, Avishai rašė:
>
>  You can also use Constraints to set height/width of children with
>> ChildSizing.
>>
>
>  Forgot about that, thanks.
>
>  One problem left: when you add TBevel as child and if you want it
> BorderSpacing.CellAlignVertical=ccaFill (to make separator), you get
> fixed height (always 50). To fix this I must use custom TBevel with
> overridden "CalculatePreferredSize" with "PreferredHeight := 1;" in it.
>
>  Is there more elegant way?
>
>
> --
>   Valdas Jankūnas
>
> --
> _______________________________________________
> 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/d5988735/attachment-0003.html>


More information about the Lazarus mailing list