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
Problem with getting series color.
-
- Site Admin
- Posts: 1349
- Joined: Thu Jan 01, 1970 12:00 am
- Location: Riudellots de la Selva, Catalonia
- Contact:
Hi Eric,
The following seems to work OK here: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;
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/
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/