Click here to Skip to main content
11,704,044 members (67,088 online)
Rate this: bad
Please Sign up or sign in to vote.
See more: C++ MFC Color Builder
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
Edited 16-Dec-12 21:21pm
Christian Graus at 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 at 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 at 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 at 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
0 Maciej Los 530
1 OriginalGriff 510
2 Sergey Alexandrovich Kryukov 421
3 Andy Lanng 294
4 F-ES Sitecore 220
0 OriginalGriff 8,744
1 Sergey Alexandrovich Kryukov 7,747
2 CPallini 5,107
3 Maciej Los 4,716
4 Mika Wendelius 3,606

Advertise | Privacy | Mobile
Web03 | 2.8.150819.1 | Last Updated 17 Dec 2012
Copyright © CodeProject, 1999-2015
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