Rectangle tool TextAlignment doesn't work with multi-lines.

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
LT411
Newbie
Newbie
Posts: 17
Joined: Wed Jan 30, 2008 12:00 am

Rectangle tool TextAlignment doesn't work with multi-lines.

Post by LT411 » Fri Oct 10, 2008 3:20 pm

If I have a multi-line annotation in a Rectangle tool with the TextAlignment set to center, it doesn't center the text on each line.

Example:

Long Line Of Text
Short
A

Should be:

Long Line Of Text
......Short
.........A

The way TextAlignment is currently implemented, it simply shifts all the lines a few pixels left or right based on the longest line.

To reproduce, use the chart editor in the designer to add a rectangle tool. Paste the text above into it. Then, change the text alignment and observe the effects.

Thanks for the help.

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Fri Oct 10, 2008 3:52 pm

Hi LT411,

Thanks for reporting. I could reproduce the issue here and added it (TF02013444) to the defect list to be fixed for next releases.
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Post Reply