为什么“ParentBackground”在Windows Classic主题中不起作用?(Why “ParentBackground” doesn't work at Windows Cl

编程入门 行业动态 更新时间:2024-10-20 20:51:57
为什么“ParentBackground”在Windows Classic主题中不起作用?(Why “ParentBackground” doesn't work at Windows Classic theme ? (Delphi))

我在表单上使用工具栏和面板。

第一张图 :Windows 7 Normal主题,Panel的ParentBackground = True:

第二张图 :Windows 7 Classic主题,PanelB的ParentBackground = True:

为什么“ParentBackground”属性在Windows Classic主题中不起作用? 我该如何解决这个问题?

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专门用于主题。 如果您没有启用主题,那么它什么都不做。 帮助说:

确定控件是否使用父级的主题背景。

如果ParentBackground为true,则控件使用父级的主题背景绘制自己的背景。 除非启用XP主题,否则ParentBackground无效。

你正在寻找ParentColor 。

A better idea : Using Gradient Panel . i resize it and match it within Toolbar :D

[Thank you all]

更多推荐

本文发布于:2023-08-01 14:57:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1359203.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:中不   主题   Classic   ParentBackground   Windows

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!