Question about RotateLabel
Question about RotateLabel
Hello,
I am using TChart 2015.15.150420 32 bit and I am using Canvas3D.RotateLabel to draw a rotated text. The last parameter of the RotateLabel procedure is AllowHTML which I set to true. What HTML should I use to present a subscript character?
Regards
I am using TChart 2015.15.150420 32 bit and I am using Canvas3D.RotateLabel to draw a rotated text. The last parameter of the RotateLabel procedure is AllowHTML which I set to true. What HTML should I use to present a subscript character?
Regards
Re: Question about RotateLabel
Code: Select all
<SUB>SubScript Text Here</SUB>
Best Regards,
Yeray Alonso Development & Support Steema Software Av. Montilivi 33, 17003 Girona, Catalonia (SP) | |
Please read our Bug Fixing Policy |
Re: Question about RotateLabel
Hello Yeray,
I tried that but unfortunately it does not work, my actual code is:
Am I missing something?
I tried that but unfortunately it does not work, my actual code is:
Code: Select all
procedure TMainForm.Chart11AfterDraw(Sender: TObject);
begin
...
TChart(Sender).Canvas.RotateLabel(X, Y, '<SUB>SubScript Text Here</SUB>', 45 , true);
end;
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Re: Question about RotateLabel
Hello johnnix,
It works for me compared with non-subscript text, for example:
It works for me compared with non-subscript text, for example:
Code: Select all
procedure TForm1.Chart1AfterDraw(Sender: TObject);
var X, Y: Integer;
begin
TChart(Sender).Canvas.Font.Size:=15;
X:=100;
Y:=X;
TChart(Sender).Canvas.RotateLabel(X, Y, 'Normal Text <SUB>SubScript Text Here</SUB>', 45 , true);
end;
Best Regards,
Narcís Calvet / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |
Re: Question about RotateLabel
Hello Narcis,
Could it be my version? I just tried a plot Title in HTML and that does not work also (double clicked a plot -> Titles -> Options -> Format HTML)
Could it be my version? I just tried a plot Title in HTML and that does not work also (double clicked a plot -> Titles -> Options -> Format HTML)
Re: Question about RotateLabel
Hello,
I've just checked it works in v2015.15 for me here: The position of the Subscript text isn't correct with oblique angles, but the text and the font size look correct.
Note I've added this to output the build version string on the chart title:
I've just checked it works in v2015.15 for me here: The position of the Subscript text isn't correct with oblique angles, but the text and the font size look correct.
Note I've added this to output the build version string on the chart title:
Code: Select all
uses TeeConst;
procedure TForm1.FormCreate(Sender: TObject);
begin
Chart1.Title.Text.Text:=TeeMsg_Version;
end;
Best Regards,
Yeray Alonso Development & Support Steema Software Av. Montilivi 33, 17003 Girona, Catalonia (SP) | |
Please read our Bug Fixing Policy |
Re: Question about RotateLabel
... does not work for me What could be the issue?
- Attachments
-
- Screenshot 2015-10-15 21.png (12.36 KiB) Viewed 29154 times
Re: Question about RotateLabel
Hello,
What IDE are you using?
What IDE are you using?
Best Regards,
Yeray Alonso Development & Support Steema Software Av. Montilivi 33, 17003 Girona, Catalonia (SP) | |
Please read our Bug Fixing Policy |
Re: Question about RotateLabel
Hello,
Delphi XE7 Version 21.0.17707.5020
Delphi XE7 Version 21.0.17707.5020
Re: Question about RotateLabel
Hello,
Looking again at your screenshot I've seen what is making the difference here: RotateLabel method doesn't support HTML5 tags in GDI Canvas.
I've added it to the public tracker:
http://bugs.teechart.net/show_bug.cgi?id=1343
In the meanwhile you can use GDIPlus instead of GDI.
Looking again at your screenshot I've seen what is making the difference here: RotateLabel method doesn't support HTML5 tags in GDI Canvas.
I've added it to the public tracker:
http://bugs.teechart.net/show_bug.cgi?id=1343
In the meanwhile you can use GDIPlus instead of GDI.
Best Regards,
Yeray Alonso Development & Support Steema Software Av. Montilivi 33, 17003 Girona, Catalonia (SP) | |
Please read our Bug Fixing Policy |
Re: Question about RotateLabel
Understood
Re: Question about RotateLabel
Hello,
Reviewing if it's worth implementing the support for the HTML in RotateLabel, doesn't GDIPlus satisfy your needs?
Reviewing if it's worth implementing the support for the HTML in RotateLabel, doesn't GDIPlus satisfy your needs?
Best Regards,
Yeray Alonso Development & Support Steema Software Av. Montilivi 33, 17003 Girona, Catalonia (SP) | |
Please read our Bug Fixing Policy |
Re: Question about RotateLabel
Best Regards,
Yeray Alonso Development & Support Steema Software Av. Montilivi 33, 17003 Girona, Catalonia (SP) | |
Please read our Bug Fixing Policy |