Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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 :

alt text

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

alt text

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

like image 378
Kermia Avatar asked Dec 14 '25 21:12

Kermia


1 Answers

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.

like image 182
Rob Kennedy Avatar answered Dec 16 '25 21:12

Rob Kennedy



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!