changing the name of Tshapeseries at runtime

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
MDA team
Newbie
Newbie
Posts: 9
Joined: Fri Jul 24, 2009 12:00 am

changing the name of Tshapeseries at runtime

Post by MDA team » Wed Aug 19, 2009 2:12 pm

Hi,

I have created a TShapreSeries on Teechart at designtime and the name of the series is "Series2".

I am trying to change the name of series as below and change a property,

TChartShape* Series2;

Series2->Name = "NewName";
Series2->Active = false; // exception occurs here...

Any clue why is this happening and how to change ar runtime the name.

Yeray
Site Admin
Site Admin
Posts: 9612
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: changing the name of Tshapeseries at runtime

Post by Yeray » Thu Aug 20, 2009 7:59 am

Hi MDA team,

I think that what you would like to do is to change the series' title:

Code: Select all

  Series2->Title = "NewName";
  Series2->Active = false;
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

Post Reply