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 sizbut on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

With XPManifest I can't set colors for Panels

Status
Not open for further replies.

Delphard

Programmer
Jul 22, 2004
144
RS
I put XPManifest component onto main Form in Project: since that I can't set color of the Panels within Forms in Project (Windows sets color for Panels on his own). Can I force Windows/Project to accept my colors?
 
I had the same problem. I found that it had to do with windows XP using themes. In ms case all panels were painted black.

I solved it by putting the ParentColor and ParentBackground properties of all panels to false and defining the color property of all panels in the forms OnCreate Method.

Hope it helps for you too.

Raoul
 
It seems like that Color property ion the TPanel is a little bit buggy.

Sometimes, I can set the ParentColor := true and then set Color to e.g. clRed.
Then I can set the Panel background color, but sometimes it doesn't work...

I suggest you create a TShape in the TPanel and align it to alClient instead.

...Or you can create a component where you draw everything by yourself.

//Nordlund
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top