Problem with getting series color.

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
LAVco
Newbie
Newbie
Posts: 5
Joined: Fri Nov 15, 2002 12:00 am
Location: Canada
Contact:

Problem with getting series color.

Post by LAVco » Tue Mar 29, 2005 10:45 pm

Has anyone used TeeChart in VC++7.1 to get series color?
Currently I always get black for color on each line series I poll.
I am using:
System::Drawing::Color seriesColor = TChart->get_Item(1)->Color;

Eric

Christopher
Site Admin
Site Admin
Posts: 1349
Joined: Thu Jan 01, 1970 12:00 am
Location: Riudellots de la Selva, Catalonia
Contact:

Post by Christopher » Wed Mar 30, 2005 6:59 am

Hi Eric,
Has anyone used TeeChart in VC++7.1 to get series color?
Currently I always get black for color on each line series I poll.
I am using:
System::Drawing::Color seriesColor = TChart->get_Item(1)->Color;
The following seems to work OK here:

Code: Select all

private: System::Void button1_Click(System::Object *  sender, System::EventArgs *  e)
			 {
				 Steema::TeeChart::Styles::Line * line1 = new Steema::TeeChart::Styles::Line(this->tChart1->Chart);
				 line1->FillSampleValues();

				 
				 System::Drawing::Color color = tChart1->get_Item(0)->Color;
				 label1->Text = color.ToString();

			 }
Thank you!

Christopher Ireland (Steema crew)
Please be aware of the newsgroup archives:
http://www.teechart.net/support/search.php
http://groups.google.com
http://codenewsfast.com/

LAVco
Newbie
Newbie
Posts: 5
Joined: Fri Nov 15, 2002 12:00 am
Location: Canada
Contact:

Post by LAVco » Thu Mar 31, 2005 1:45 am

Hi Chris.

Found the problem was the VS 2003 watch window always showing Black when it was actually a color.

Thanks.

Post Reply