[Lazarus] Testing 0.9.29

Mattias Gaertner nc-gaertnma at netcologne.de
Sat Feb 19 17:14:34 CET 2011


On Sat, 19 Feb 2011 15:34:10 +0000
Martin <lazarus at mfriebe.de> wrote:

>[...]
> >> Now tested and found a minor bug in TLabel:
> >> 1. Put label on form
> >> 2. Set Alignment=taRightJustify and Autosize=true
> >> 3. Enter text and observe that the label is still anchored on its
> >> *left* hand side (expands to the right).
> > What is the state of Anchors?
> > If it is set to akLeft, then the behavior is correct.
> >
> >
> >> In Delphi labels that have taRightJustify will automatically
> >> expand/contract on the left side so the right edge is fixed.
> > Does the VCL automatically change the Anchors?
> 
> tested with turbo delphi.
> 
> No the anchor is not changed.
> but the behaviour is consistent.
>
> The Anchors are not used if size changes from autosize

If the VCL AutoSize ignores parts of the other layout settings then for
me this sounds "inconsistent".

What happens when you set Anchors to [akRight,akTop] in VCL?


> A taLeftJustify in Turbo delphi always expands to the right, if caption 
> changes (never mind akLeft, or akRigh_
> A taRightJustify  always expands to the left, if caption is changed
> 
> akLteft/akRight affect the labels movement if the parent container resizes.
> 
> -----
> It doesn't seem a regression though, Lazarus 0.9.28 doesn't do the 
> Delphi way neither

Cross platform forms require a consistent layout engine.

Mattias




More information about the Lazarus mailing list