Click here to Skip to main content
13,557,915 members
Rate this:
Please Sign up or sign in to vote.
See more:
1.void __fastcall TForm1::Timer1Timer(TObject *Sender)   
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;   

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 ...[^]
Posted 16-Dec-12 15:36pm
Updated 16-Dec-12 21:21pm
ChristianGraus 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.
ChristianGraus 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)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy |
Web03-2016 | 2.8.180515.1 | Last Updated 17 Dec 2012
Copyright © CodeProject, 1999-2018
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100