Series runtime instance

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
Mario
Newbie
Newbie
Posts: 4
Joined: Tue Jan 18, 2005 5:00 am

Series runtime instance

Post by Mario » Tue Jan 25, 2005 9:31 am

How can I create an istance of TColorGrid series at runtime?
I tried with this code:

TColorGridSeries *series1;
series1=new TColorGridSeries ();
TColorGridSeries ->add->XYZ..............

but the constructor of TColorGridSeries class is not implemented.


Thanks

Marjan
Site Admin
Site Admin
Posts: 745
Joined: Fri Nov 07, 2003 5:00 am
Location: Slovenia
Contact:

Post by Marjan » Tue Jan 25, 2005 9:40 am

Hi.

How about this:

Code: Select all

#include "TeeSurfa.hpp"
// ...
TColorGridSeries *colorgrid1= new TColorGridSeries(this);
colorgrid1->ParentChart = Chart1;
colorgrid1->AddXYZ(2,3,1,"",clTeeColor);
Marjan Slatinek,
http://www.steema.com

Post Reply