Click here to Skip to main content
15,884,298 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
C++
1.void __fastcall TForm1::Timer1Timer(TObject *Sender)   
2.{   
3.    if(0.0055 <n && n< 0.008)   
4.    {   
5.        AreaSeries2->SeriesColor = clRed;   
6.        AreaSeries2->AddXY(n,Number);   
7.    }   
8.    else  
9.    {   
10.       AreaSeries1->SeriesColor = clLime;   
11.       AreaSeries1->AddXY(n,Number);   
12.       Number +=(float)1/10;   
13.   }   
14.       n = Now().CurrentTime().Val;   
15.}  


That's a C++Builder project,i want to change the color of the different AreaSeries.For example,at first, I want to brush the green area,Secondly, brush the red area,the C++ code above can be realized. If I want to continue to brush green area,it will cover the red before.How can I brush red green separate area? The color of the regional order is like:green,red,green,red ...
http://delphi.ktop.com.tw/download/upload/50c9336a9441f_20121213093614.png[^]
Posted
Updated 16-Dec-12 21:21pm
v5
Comments
Christian Graus 16-Dec-12 21:55pm    
As almost noone in the civilised world uses C++ Builder, you should tag this question to show that's what its about
dragon9098 16-Dec-12 22:31pm    
Thanks for your reply! As almost noone in the civilised world uses Borland C++ Builder,really? But I still use it,do with some program interface.
What I want to do is:in one area,brush red green different colors.
Christian Graus 16-Dec-12 23:06pm    
IT's not widely used, no. Most people use MS tools. I was being a little facetious, but the truth is, not many people use it, so you should use tags to attract those that do, to your question. I have no clue, I never used it.
dragon9098 16-Dec-12 23:46pm    
Thank you for your suggestions!I have changed the tag,and looking forward to master's answer...

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900