[Lazarus] TPanel bevel and client size

Mattias Gaertner nc-gaertnma at netcologne.de
Sat Feb 13 17:33:32 CET 2010


On Sat, 13 Feb 2010 11:20:46 -0500
waldo kitty <wkitty42 at windstream.net> wrote:

> On 2/13/2010 06:12, Mattias Gaertner wrote:
> > On Sat, 13 Feb 2010 06:03:27 -0500
> > waldo kitty<wkitty42 at windstream.net>  wrote:
> >
> >> On 2/13/2010 05:23, Mattias Gaertner wrote:
> >>> In other words:
> >>> If you want to position a child control to fill the complete width of
> >>> its parent, use the above. (or use Align=alTop,alBottom,alClient).
> >>> This will exclude the bevels.
> >>
> >> :shock: :!: :!: you can list multiple alignment options by comma separating
> >> them?? i've never seen this documented and it was one thing i searched for for
> >> quite a few days before giving up in frustration :sigh:
> >
> > Yes, english text mails have a very flexible format.
> >
> > If you are speaking about pascal:
> > Align can only be one value. And more does not make sense, as each align
> > value is a set of anchors.
> 
> ahhh... so i misread the above?? it cannot be Align=alTop,alBottom,alClient but 
> only Align=alTop or Align=alBottom or Align=alClient ??

Yes.
Align=alTop means Anchors=[akLeft,akTop,akRight] and filling the client
space.

To anchor only the control's top side, use Anchors:=Anchors+[akTop]


Mattias




More information about the Lazarus mailing list