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.
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.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.