Drawing static custom 2D text and graphic on TChart3D

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
niotronic
Newbie
Newbie
Posts: 14
Joined: Mon Jul 15, 2013 12:00 am

Drawing static custom 2D text and graphic on TChart3D

Post by niotronic » Sat Jun 21, 2014 6:58 am

Hi,

I would like to show custom text and a TGraphicControl based transparent visual component on a TChart3D - i.e. text and components drawn shell stay on a fixed position with reference to the TForm, independent of the Charts rotation / panning / zoom. Using the Textout / Moveto / lineto methods of the TChart3D's canvas will always draw in 3D and also move the custom text and graphic when the chart is rotated, zoomed etc.
Placing a TGrapicControl base component with its owner and parent property set to underlying TChart3D component does not allow for transparency - i.e. Textout in the overriden Paint method of the TGraphicControl descendent is not transparent and flickers a lot when the the Chart is rotated.
Is there a way to draw custom 2D text and 2D graphic on a TChart3D that stay on a fixed position when the Chart is rotated / zoomed using any of its methods ?

Best regards,

Klaus

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

Re: Drawing static custom 2D text and graphic on TChart3D

Post by Narcís » Mon Jun 23, 2014 8:52 am

Hi Klaus,

You could try do the custom drawing in the OnAfterDraw event so objects will be placed with absolute positions.
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

Post Reply