Well, I had not yet reported to bugtracker when I noticed that it has been improved in last svn Now Label is always left aligned if AutoSize=True, and correctly aligned and full text displayed if AutoSize=False, which looks ok to me :)
But (there is often a 'but'), after closing and re-opening the project, Width (and Height too) are the ones of the Caption, while at run time they keep correct. There is a discrepancy between what is in the .lfm and what is displayed by the Object Inspector :( Jean-Marc Le samedi 10 Décembre 2005 10:49, jean-marc levecque a écrit : > Hi, > > Using right aligned labels, with changing text on it, I noticed that it > doesn't work, at least on my Linux Mdk10.1 > I made a simple test on form: > > 6 labels: > Label1 - AutoSize=True - Alignment=taLeftJustify > Label2 - AutoSize=True - Alignment=taRightJustify > Label3 - AutoSize=True - Alignment=taCenterJustify > Label4 - AutoSize=False - Alignment=taLeftJustify > Label5 - AutoSize=False - Alignment=taRightJustify > Label6 - AutoSize=False - Alignment=taCenterJustify > Width set to 350 to each Label > > 2buttons: > Button1Click writes 'Test' to the Captions od each Label > Button2Cilck writes 'This is a long label test' to the Caption of each > Label > > Run the project: > onShow: the three Labels with AotoSize set to True are all Left aligned !! > Click Button1 or Button2 does not change the alignment but texts are > correctly written > > Stop the project: > Design alignments have not changed > > Close the project by calling any other one, then re-open it: > All Labels are right aligned and their length reduced to their design > Caption which I did not modify (just Label names)!! > > Run again the project: > Labels are all left aligned with desin caption > Click on Button1 show text aligned correctly for AutoSize=False, but inside > the length of the design Caption > Click on Button2 show the text correctly for AutoSize=True, with left > alignment, and text truncated but correctly aligned inside the length of > the design caption for AutoSize=False > > But the design values of AutoSize and Alignment have not changed in the > Object Inspector > > I will add this to the bugtracker, with test source > > Jean-Marc > > _________________________________________________________________ > To unsubscribe: mail [EMAIL PROTECTED] with > "unsubscribe" as the Subject > archives at http://www.lazarus.freepascal.org/mailarchives _________________________________________________________________ To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe" as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
