Link to home
Start Free TrialLog in
Avatar of xpher
xpher

asked on

Component Colour

Is there any way to give a component a color other than the available choices. Maybe use hexadecimal?

Cheers
xpher
ASKER CERTIFIED SOLUTION
Avatar of inthe
inthe

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of inthe
inthe

btw
if you need a list of hex colors ,i got mine from a website for teaching html which as you probably know uses hex for the colors.maybe you have a list in a html book...
i could probably find you a list if you need ,just say if so..

Barry
Avatar of xpher

ASKER

Many thanks (again) Barry. Yes I have got a list of colours.

Cheers
Chris :))
Avatar of xpher

ASKER

Hi
A problem. The color with hexadecimal #A50000 is supposed to be a deep red. If I use $A50000 it is blue (a very nice blue but not red). Any ideas?

Cheers
Chris :)(
LOL,Yes i just tried that and is very blue :-)

the answer seems to be everything is backwards.
ie:
procedure TForm1.FormCreate(Sender: TObject);
begin
 memo1.color:=$0000A5; {this = deep red}{nice color btw}
end;

it goes $(hex)00(blue)00(green)00(red)
so ff0000 is blue not red as should be..
strange huh :-)
Regards Barry
Avatar of xpher

ASKER

Many thanks Barry (again)(again).

Cheers
Chris:))