TeeChart Problems

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
alias
Newbie
Newbie
Posts: 1
Joined: Tue Dec 27, 2005 12:00 am

TeeChart Problems

Post by alias » Wed Dec 28, 2005 10:45 pm

Just downloaded Pro VCL 7.06.
I have existing code written in D7.
Three problems:

1) In my existing code I wrote to the chart canvas
at a specific spot with a font using:
Chart1.FontCanvas(Chart1.Title.Font);
SetBkMode( Chart1.Canvas.Handle, TRANSPARENT );
Chart1.Canvas.TextOut( CalcPixelForThisPercent(
Chart1.ChartBounds.Left,Chart1.ChartBounds.Right,HorizontalPercent ),
CalcPixelForThisPercent(
Chart1.ChartBounds.Top, ChartBounds.Bottom, VerticalPercent ),
Text );

I can't find FontCanvas in TeeChartPro.

2) How do I know I'm using the new TChartPro rather than
my old Tchart included in D7?

3) I use the popular package GIFImage.
It appears to conflict:
Cannot load package 'TeeImage77.'
Is there an easy workaround?

TIA

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 Dec 29, 2005 9:36 am

Hi,
1) In my existing code I wrote to the chart canvas
at a specific spot with a font using:
Chart1.FontCanvas(Chart1.Title.Font);
SetBkMode( Chart1.Canvas.Handle, TRANSPARENT );
Chart1.Canvas.TextOut( CalcPixelForThisPercent(
Chart1.ChartBounds.Left,Chart1.ChartBounds.Right,HorizontalPercent ),
CalcPixelForThisPercent(
Chart1.ChartBounds.Top, ChartBounds.Bottom, VerticalPercent ),
Text );

I can't find FontCanvas in TeeChartPro.


You should use:

Code: Select all

  Chart1.Canvas.Font.Style:=Chart1.Title.Font.Style;
2) How do I know I'm using the new TChartPro rather than
my old Tchart included in D7?
First of all, in the Pro v7 version the TChart component is located at the "TeeChart" tab in the component palette instead of the "Additional" tab. And second, if you right-click on the TChart component in your form, the context menu opened should say TeeChar Pro v7.06 and clicking in the about option should open the about box for this version.
3) I use the popular package GIFImage.
It appears to conflict:
Cannot load package 'TeeImage77.'
Is there an easy workaround?
You should go at Delphi's component list at Project>Options>Packages and check that "TeeChart Pro Graphic Formats" component is installed and enabled. Then you should also check that at Project>Options>Packages>Directories/Conditionals\Search Path, TeeChart Pro v7 "Bin" and "Lib" folders are on top of this list. After that, enable the left-bottom "Default" checkbox.
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