We are currently using Tee-Chart Active X 8.
We are facing a problem related to 'contour' series.
When we open the T-Chart editor and select the Grid 3D tab -> Single -> "Remove custrom colors button" appear.
We want to use this function for VC6(MFC) Code.
Please suggest if there is any way to directly for using this function.
Regards,
ms.Lee
Queries for contour..
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Re: Queries for contour..
Hello ms.Lee,
Please bear in mind that TeeChart Pro ActiveX is a COM wrapper of TeeChart Pro VCL. Therefore, editors are written in Delphi. So that's what the button in TGrid3DSeriesEditor (TeeGriEd.pas) editor does:
Where Grid3D is a TCustom3DPaletteSeries. Therefore, in Visual C++ you could translate this code to something like this:
Values for TeeChart constants, like clTeeColor can be found at TeeChartDefines.h at the Visual C++ examples folder, for example: C:\Program Files\Steema Software\TeeChart Pro v2013 ActiveX Control\Examples\Visual C++. You could also include it in your project so that you can use the constants directly.
Please bear in mind that TeeChart Pro ActiveX is a COM wrapper of TeeChart Pro VCL. Therefore, editors are written in Delphi. So that's what the button in TGrid3DSeriesEditor (TeeGriEd.pas) editor does:
Code: Select all
procedure TGrid3DSeriesEditor.BRemoveClick(Sender: TObject);
var t : Integer;
begin
with Grid3D do
for t:=0 to Count-1 do ValueColor[t]:=clTeeColor;
BRemove.Enabled:=False;
end;
Code: Select all
for (int t=0; t<m_Chart1.Series(0).GetCount(); t++)
{
m_Chart1.Series(0).SetPointColor(t, 536870912); //clTeeColor = 536870912
}
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 |