Custom color in form

How do you give your form a custom color. I want to use a color that is not in the list - a non standard color.
mdlittleAsked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
hubdogConnect With a Mentor Commented:
In object property editor,you setfocus in color property,and doubleclick your mouse then there will be a dialog for choose a custom color.
Select the color you favorite,then the Color property will change to a value
such as $00FF0080.Then you can record it and use it in your program

good luck

hubdog
0
 
victor_christovCommented:
Hi MdLittle

As you know, Color is of type TColor,
were  TColor is a specific 4-byte hexadecimal number. So you can assign
any value in this range to Color property.( for example  Color := $12345)
For more details look at Delphi Help


Regards, Victor
0
 
mdlittleAuthor Commented:
This does not result in the desired effect. I tried the following:

form1.color := $007A90BA
{and $017A90BA and $027A90BA}

This color is a light blue.

The result is an ugly shade of orange.

I want the blue color. Is it a pallet problem? If so how do I fix?

Mike
0
 
mdlittleAuthor Commented:
Adjusted points to 250
0
 
mdlittleAuthor Commented:
Duh! I can't believe I missed that. Thanks!
0
All Courses

From novice to tech pro — start learning today.