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开发者_JAVA百科 , 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.
A better idea : Using Gradient Panel . i resize it and match it within Toolbar :D
[Thank you all]
精彩评论