Why “ParentBackground” doesn't work at Windows Classic theme ? (Delphi)

i use a toolbar and a panel on my form .

First picture : Windows 7 Normal theme , ParentBackground for Panel = True :

Second picture : Windows 7 Classic theme , ParentBackground for Panel = True :

Why "ParentBackground" property doesn't work at Windows Classic theme ? and how can i solve this problem ?


ParentBackground is exclusively for themes. If you don't have themes enabled, then it does nothing. The help says so:

Determines whether control uses parent's theme background.

If ParentBackground is true, the control uses the parent's theme background to draw its own background. ParentBackground has no effect unless XP themes are enabled.

You're looking for ParentColor instead.

Need Your Help

How to call a script with the HTML file

javascript jquery html plugins call

I'm trying to configure a jquery plugin and came across the following instructions, I'm pretty new at JS so sorry if this is a dumb question. I'm not sure how to structure my html to call the follo...

Is there a good library for dealing with the Modbus protocol in .NET?

.net open-source protocols plc modbus

Does anyone know of a good (preferably open source) library for dealing with the Modbus protocol? I have seen a few libraries, but I am looking for some people's personal experiences, not just the ...

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.