Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 3 of 3 total
Thread Minor funny
Fri, May 31 2013 10:14 AMPermanent Link

Matthew Jones

Take a TLabel, call it lblAlign, put it on a form with a timer and a button.

Add this code to the timer:

   lblAlign.Caption := FloatToStr(Random * 1000);
   lblAlign.Left := Button1.Left + button1.Width - lblAlign.Width;

All sensible yes? The right edge of the label is aligned to the right edge of the
button.

Now change the label's alignment to taRightJustify and run it again. The label is
all over the place, and certainly not aligned.

Not sure what is happening here, but suffice to say the workaround is simply to
align it left.
   
/Matthew Jones/
Mon, Jun 3 2013 5:09 AMPermanent Link

Matthew Jones

FWIW, this happens with TLink too, in 1.0.2. Same workaround fixes.

/Matthew Jones/
Tue, Jun 4 2013 2:22 PMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Matthew,

<< FWIW, this happens with TLink too, in 1.0.2. Same workaround fixes. >>

This wasn't addressed in 1.02 - didn't make the cut.

Tim Young
Elevate Software
www.elevatesoft.com
Image