TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
-
Technicon
- Newbie
- Posts: 43
- Joined: Thu Aug 11, 2016 12:00 am
-
Contact:
Post
by Technicon » Tue Jan 17, 2017 12:31 pm
Hello
Incorrect axis title position when angle = 0 and TextFormat = ttfHtml (multi line)
Here Is a simple example
Code: Select all
void __fastcall TForm1::FormCreate(TObject *Sender)
{
Chart1->View3D = false;
TLineSeries* pTLineSeries = new TLineSeries(Chart1);
Chart1->AddSeries(pTLineSeries);
pTLineSeries->FillSampleValues(50);
Chart1->LeftAxis->Title->Text = "Line 1<BR>Line 2";
Chart1->LeftAxis->Title->TextFormat = ttfHtml;
Chart1->LeftAxis->Title->Transparent = false;
Chart1->LeftAxis->Title->Angle = 0;
}
- angle0.png (20.2 KiB) Viewed 18377 times
When Angle = 90 the position is also incorrect or left margin is to small (it depends on current chart size)
- angle90.png (19.31 KiB) Viewed 18377 times
Best Regards,
Grzegorz
-
Sandra
- Site Admin
- Posts: 3132
- Joined: Fri Nov 07, 2008 12:00 am
Post
by Sandra » Wed Jan 18, 2017 12:03 pm
Hello Technicon,
You can fix the Title Axis position when the Angle is 0, changing the left margin size in same way as code below:
Code: Select all
void __fastcall TForm1::FormCreate(TObject *Sender)
{
Chart1->View3D = false;
TLineSeries* pTLineSeries = new TLineSeries(Chart1);
Chart1->AddSeries(pTLineSeries);
pTLineSeries->FillSampleValues(50);
Chart1->LeftAxis->Title->Text = "Line 1<BR>Line 2";
Chart1->LeftAxis->Title->TextFormat = ttfHtml;
Chart1->LeftAxis->Title->Transparent = false;
Chart1->LeftAxis->Title->Angle = 90;
TeeGDIPlus1->TeePanel = Chart1;
TeeGDIPlus1->Active = true;
CheckBox1->Checked = true;
Chart1->Draw();
//ChangeMargins size
Chart1->MarginUnits = muPixels;
TRect* rect1T = new TRect();
rect1T = &Chart1->LeftAxis->Title->ShapeBounds;
Chart1->MarginLeft = Chart1->MarginLeft+ rect1T->Width();
}
Hoping this helps
Thanks in advance
-
Technicon
- Newbie
- Posts: 43
- Joined: Thu Aug 11, 2016 12:00 am
-
Contact:
Post
by Technicon » Wed Jan 18, 2017 12:37 pm
Hello,
Thank you for your help but I was rather expect some TeeChart source code hotfix and BTS report.
There is to many glitches in TeeChart that I have to bypass and because of that I'm not able to finish my project.
I'm still waiting for some other fixes to. In BTS I see confirmed errors that are above 1 year old and no one care about it.
I think that it is about time to put some more resources to fix all known errors.
Best Regards,
Grzegorz
-
Sandra
- Site Admin
- Posts: 3132
- Joined: Fri Nov 07, 2008 12:00 am
Post
by Sandra » Wed Jan 18, 2017 4:52 pm
Hello Grzegorz,
I'm sorry you found many problems with TeeChart Pro VCL/FMX.
Could you please, confirm us which Bugs you expected are fixed because we can review these immediately?
Thanks in advance
-
Sandra
- Site Admin
- Posts: 3132
- Joined: Fri Nov 07, 2008 12:00 am
Post
by Sandra » Fri Jan 20, 2017 4:22 pm
Hello Grzegorz,
Many thanks your detailed information. We review that and try to fix the bugs for next maintenance release.
Thanks in advance
-
Yeray
- Site Admin
- Posts: 9612
- Joined: Tue Dec 05, 2006 12:00 am
- Location: Girona, Catalonia
-
Contact:
Post
by Yeray » Thu Feb 23, 2017 1:36 pm
Hi Grzegorz,
Let me update the status of the mentioned tickets:
#1651: Fixed
#1694: Fixed
#1638: Fixed
#1343: Pending
#1692: Fixed
-
Technicon
- Newbie
- Posts: 43
- Joined: Thu Aug 11, 2016 12:00 am
-
Contact:
Post
by Technicon » Fri Feb 24, 2017 6:02 am
Hi,
It's good to know that resolving issues is moving forward.
Thank you for information.
Are the issue about the thread subject are also resolved?
Best Regards,
Grzegorz
-
Yeray
- Site Admin
- Posts: 9612
- Joined: Tue Dec 05, 2006 12:00 am
- Location: Girona, Catalonia
-
Contact:
Post
by Yeray » Fri Feb 24, 2017 11:43 am
Hello Grzegorz,
Technicon wrote:Are the issue about the thread subject are also resolved?
I'm afraid not. Just created the ticket for it:
http://bugs.teechart.net/show_bug.cgi?id=1803
-
Yeray
- Site Admin
- Posts: 9612
- Joined: Tue Dec 05, 2006 12:00 am
- Location: Girona, Catalonia
-
Contact:
Post
by Yeray » Wed Mar 01, 2017 8:38 am
Hi Grzegorz,
Yeray wrote:
#1343: Pending
Closed as "Won't Fix". We recommend moving to GDIPlus.