Page 1 of 1

TeeChart Problems

Posted: Wed Dec 28, 2005 10:45 pm
by 9344741
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

Posted: Thu Dec 29, 2005 9:36 am
by narcis
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.