开发者

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

开发者 https://www.devze.com 2023-01-28 21:51 出处:网络
i use a toolbar and a panel on my form . First picture : Windows 7 Normal theme开发者_JAVA百科 , ParentBackground for Panel = True :

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

精彩评论

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