Page 1 of 1

Axis title text doesn't obey html format

Posted: Fri Jan 13, 2017 8:25 am
by 16578912
Hello,

Axis title text doesn't obey html format
axistitlehtml.jpg
axistitlehtml.jpg (169.86 KiB) Viewed 11314 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

Re: Axis title text doesn't obey html format

Posted: Fri Jan 13, 2017 11:07 am
by yeray
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.

Re: Axis title text doesn't obey html format

Posted: Mon Jan 16, 2017 6:37 am
by 16578912
Yes I've set

Code: Select all

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

Best Regards,
Grzegorz

Re: Axis title text doesn't obey html format

Posted: Mon Jan 16, 2017 11:40 am
by 10050769
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

Re: Axis title text doesn't obey html format

Posted: Mon Jan 16, 2017 12:02 pm
by 16578912
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 11288 times
GDI+ disabled
gdipdis.png
gdipdis.png (17.2 KiB) Viewed 11286 times
Best Regards,
Grzegorz

Re: Axis title text doesn't obey html format

Posted: Tue Jan 17, 2017 9:23 am
by 10050769
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