Page 1 of 1
Problem with getting series color.
Posted: Tue Mar 29, 2005 10:45 pm
by 8121677
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
Posted: Wed Mar 30, 2005 6:59 am
by Chris
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();
}
Posted: Thu Mar 31, 2005 1:45 am
by 8121677
Hi Chris.
Found the problem was the VS 2003 watch window always showing Black when it was actually a color.
Thanks.