Misplaced Depth Right Axis Title in V8.0.2 (in OpenGL mode)

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
xray
Newbie
Newbie
Posts: 15
Joined: Thu Dec 20, 2007 12:00 am

Misplaced Depth Right Axis Title in V8.0.2 (in OpenGL mode)

Post by xray » Thu Jan 03, 2008 12:28 pm

Hi Steema team,

I just upgraded our software package from TChart 7 to TChart 8.0.2.
Unfortunately it seems that a small bug was introduced in the new version concerning the painting of the title of the Depth Right Axis in OpenGL mode. The title is now misplaced and is displayed in front of the chart and not at the center of the axis like in the old (TChart V7) version.

Best regards,

xray

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

Post by Narcís » Thu Jan 03, 2008 12:48 pm

Hi xray,

Thanks for reporting. I could reproduce the issue here and also checked that worked fine in v7. I've added the defect (TV52012692) to our bug list to be fixed for future 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

xray
Newbie
Newbie
Posts: 15
Joined: Thu Dec 20, 2007 12:00 am

Post by xray » Thu Jan 03, 2008 1:07 pm

Hi Narcis,

thanks for the fast reply!
I have another remark concerning the Depth Right Axis title.
Unfortunately it is only possible to display this title perpendicular
to this axis. For other axes like the Left and Bottom axis it is possible to display the titles along the axes. This is of course the expected/right behaviour. Is this feature already on the wish list for a next version?

best regards,

xray

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

Post by Narcís » Thu Jan 03, 2008 1:11 pm

Hi xray,

Yes, this has been reported previously and is already in the wish-list to be implemented for future 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

xray
Newbie
Newbie
Posts: 15
Joined: Thu Dec 20, 2007 12:00 am

Post by xray » Thu Jun 04, 2009 6:16 am

Hi TChart Team,

I just installed V8.05 and this bug is still not fixed.
This is unfortunately a real showstopper for our next release.
Can someone please point me to the source file where this
bug is located and give a hint what is going wrong. Then I can try to fix it myself. Tips for other workarounds (like how to place some text at the desired position) are greatly appreciated too!

best regards,

xray

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

Post by Narcís » Thu Jun 04, 2009 10:55 am

Hi xray,

I've increased issue's priority to be investigated for future releases. In the meantime, you can look in TeeGLCanvas.pas at TGLCanvas.RotateLabel3D method.
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

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

Post by Narcís » Thu Jun 04, 2009 11:04 am

Hi xray,

I forgot to suggest a workaround. It could be drawing the title manually to the canvas like this:

Code: Select all

procedure TForm4.Chart1AfterDraw(Sender: TObject);
var x, y, z: Integer;
begin
  x:=Chart1.ChartRect.Right + 10;
  y:=Chart1.ChartRect.Bottom;
  z:=Chart1.Axes.Depth.IAxisSize div 2;
  Chart1.Canvas.TextOut3D(x, y, z, 'my title');
end;
Hope this helps!
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

xray
Newbie
Newbie
Posts: 15
Joined: Thu Dec 20, 2007 12:00 am

Post by xray » Thu Jun 04, 2009 1:10 pm

Hi Narcis,

thanks for the workaround, it solved the problem!

best regards,

xray

Post Reply