BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

RGB color system

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (VCL Components Usage)
View previous topic :: View next topic  
Author Message
SVC
Guest





PostPosted: Fri May 27, 2005 1:54 pm    Post subject: RGB color system Reply with quote



Hi,

Any reason why the RGB coloring number doesn't work?

For example, if I use (i.e., Edit1->Color = 0xffd700):

Gold (0xFFD700), I'm getting cyan
Peach(0xFFDAB9), I'm getting light blue
Orange(0xFFA500), I'm getting blue


Thanks,
S.


Back to top
Bruce Salzman
Guest





PostPosted: Fri May 27, 2005 1:58 pm    Post subject: Re: RGB color system Reply with quote



Quote:
Any reason why the RGB coloring number doesn't work?

For example, if I use (i.e., Edit1->Color = 0xffd700):

Gold (0xFFD700), I'm getting cyan
Peach(0xFFDAB9), I'm getting light blue
Orange(0xFFA500), I'm getting blue


Use the RGB() macro. It puts the components in the correct order
(b,g,r) for you.

--
Bruce



Back to top
François Charton
Guest





PostPosted: Fri May 27, 2005 4:12 pm    Post subject: Re: RGB color system Reply with quote




"SVC" <svchamlian (AT) hotmail (DOT) com> a écrit dans le message de news:
[email]429726a3 (AT) newsgroups (DOT) borland.com[/email]...
Quote:
Hi,

Any reason why the RGB coloring number doesn't work?

For example, if I use (i.e., Edit1->Color = 0xffd700):

Gold (0xFFD700), I'm getting cyan
Peach(0xFFDAB9), I'm getting light blue
Orange(0xFFA500), I'm getting blue



TColor is 0x00BBGGRR, not 0x00RRGGBB,

try TColor Gold=TColor(0x0000D7FF) everything should work all right.

Francois



Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (VCL Components Usage) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.