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
TeeChart Problems
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi,
You should use:
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;
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.2) How do I know I'm using the new TChartPro rather than
my old Tchart included in D7?
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.3) I use the popular package GIFImage.
It appears to conflict:
Cannot load package 'TeeImage77.'
Is there an easy workaround?
Best Regards,
Narcís Calvet / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |