开发者

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 :

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

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

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

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]

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜