Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations MikeeOK on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Form color changing 1

Status
Not open for further replies.

Jonah86

Programmer
Dec 11, 2003
152
US
I just changed all the forms in a program to be a little more appealing to the eye. Well, I used one of the predefined colors in Delphi7 for the form backgrouds and when I ran the .exe on another computer the backgrouns were all black instead of blue. All the other colors were right, just not the background.

Both computere have the same OS and colors work fine on everything BUT the background. This makes no sense to me.

Any help is greatly appreciated.
 
hi,

Are u using an rgb color, or a define color...

exemple:

$02FF011A would be the same on all cpu
but
clBtnFace would/can change from a pc to an other.. because its not the color but a mapping to an environment color..

jb
 
Aha, yeah I'm just using the color property for the form. You're saying if I set the color using the rgb color code in the code it will work? I'll have to try that tomorrow. Thanks for the help!
 
hi,

in fact, i realized that i used the word RGB, but it's not really RGB, it's a Tcolor... but it wont affect your result:p

jb
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top