TSeriesMarks Color

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
beetle
Newbie
Newbie
Posts: 59
Joined: Fri Dec 12, 2003 5:00 am

TSeriesMarks Color

Post by beetle » Mon May 15, 2006 5:43 am

Hi,
I am using Teechart 7.06 VCL version under C++ Builder . It is possible to assign different colors to each mark in a TSeriesMarks serie?

If not, Is it possible to inherit from it and change this behaviour?

Thanks in advance
Pablo

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Mon May 15, 2006 7:46 am

Hi Pablo,
I am using Teechart 7.06 VCL version under C++ Builder . It is possible to assign different colors to each mark in a TSeriesMarks serie?
I'm afraid this is not possible for now.
If not, Is it possible to inherit from it and change this behaviour?


Yes, you may create you own marks inheriting from the existing ones and overriding necessary methods.
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

beetle
Newbie
Newbie
Posts: 59
Joined: Fri Dec 12, 2003 5:00 am

Post by beetle » Mon May 22, 2006 5:44 am

Narcis,
I have found that Color property can be set for every mark item. C++ Code:

int np=0;
Serie->Marks->Item[np]->Color=clYellow;

and thats all,

Greetings
Pablo

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Mon May 22, 2006 9:19 am

Hi Pablo,

You are right, I confused myself :oops:.
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Post Reply