Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C++ MFC Color Builder
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 16-Dec-12 16:36pm
Edited 16-Dec-12 22:21pm
v5
Comments
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 Sergey Alexandrovich Kryukov 485
1 BillWoodruff 330
2 OriginalGriff 310
3 Shweta N Mishra 244
4 Mathew Soji 225
0 OriginalGriff 6,153
1 Sergey Alexandrovich Kryukov 5,638
2 DamithSL 4,958
3 Manas Bhardwaj 4,539
4 Maciej Los 3,710


Advertise | Privacy | Mobile
Web01 | 2.8.1411019.1 | Last Updated 17 Dec 2012
Copyright © CodeProject, 1999-2014
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