Axis title text doesn't obey html format

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
Technicon
Newbie
Newbie
Posts: 43
Joined: Thu Aug 11, 2016 12:00 am
Contact:

Axis title text doesn't obey html format

Post by Technicon » Fri Jan 13, 2017 8:25 am

Hello,

Axis title text doesn't obey html format
axistitlehtml.jpg
axistitlehtml.jpg (169.86 KiB) Viewed 11445 times
As you can see on that picture the frame behaves correctly but the text dose not breaking the line ( <BR> tag ).

Best Regards,
Grzegorz

Yeray
Site Admin
Site Admin
Posts: 9612
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: Axis title text doesn't obey html format

Post by Yeray » Fri Jan 13, 2017 11:07 am

Hello,

Have you set TextFormat to ttfHtml?

Code: Select all

Chart1.Axes.Left.Title.TextFormat:=ttfHtml;
If you still find problems with it, please arrange a simple example project we can run as-is to reproduce the problem here.
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

Technicon
Newbie
Newbie
Posts: 43
Joined: Thu Aug 11, 2016 12:00 am
Contact:

Re: Axis title text doesn't obey html format

Post by Technicon » Mon Jan 16, 2017 6:37 am

Yes I've set

Code: Select all

TextFormat:=ttfHtml;
.
The problem appear when you switch from GDI+ to GDI render.

Best Regards,
Grzegorz
Attachments
TeeChartTestCase4.zip
(90.06 KiB) Downloaded 686 times

Sandra
Site Admin
Site Admin
Posts: 3132
Joined: Fri Nov 07, 2008 12:00 am

Re: Axis title text doesn't obey html format

Post by Sandra » Mon Jan 16, 2017 11:40 am

Hello technicon,

Unfortunately, I can't reproduce the problem you experiencing using the code below with TeeChart Pro VCL/FMX build 2016.19.161025:

Code: Select all

void __fastcall TForm1::FormCreate(TObject *Sender)
{
	Chart1->View3D = false;
	Series1->FillSampleValues(100);
	//CharthtmlFormat
	Chart1->Axes->Left->Visible = true;
	Chart1->Axes->Left->Title->Text = "Html text";
	Chart1->Axes->Left->Title->TextFormat = ttfHtml;
	TeeGDIPlus1->TeePanel = Chart1;
	CheckBox1->Checked = true;
}
//---------------------------------------------------------------------------
void __fastcall TForm1::CheckBox1Click(TObject *Sender)
{
		if (CheckBox1->Checked)
		{
			TeeGDIPlus1->Active = true ;


		}
		else
		{
			TeeGDIPlus1->Active = false;
		}
}
Could you check the code above and confirm your results?

Thanks in advance
Best Regards,
Sandra Pazos / 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

Technicon
Newbie
Newbie
Posts: 43
Joined: Thu Aug 11, 2016 12:00 am
Contact:

Re: Axis title text doesn't obey html format

Post by Technicon » Mon Jan 16, 2017 12:02 pm

Yes I can confirm
But You have to use html tag <BR> in text eg.

Code: Select all

Chart1->Axes->Left->Title->Text = "Html<BR>text";
GDI+ enable
gdipen.png
gdipen.png (22.12 KiB) Viewed 11419 times
GDI+ disabled
gdipdis.png
gdipdis.png (17.2 KiB) Viewed 11417 times
Best Regards,
Grzegorz

Sandra
Site Admin
Site Admin
Posts: 3132
Joined: Fri Nov 07, 2008 12:00 am

Re: Axis title text doesn't obey html format

Post by Sandra » Tue Jan 17, 2017 9:23 am

Hello Technicon,

Many thanks for the update information.

After reviewing that again, I would like inform you the proble is already added in TeeChart VCL bugzilla tracker. Here's the link: http://bugs.teechart.net/show_bug.cgi?id=1343.

Feel free to add your mail to the ticket CC list to be automatically notified when an update arrives.

Thanks in advance
Best Regards,
Sandra Pazos / 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