为什么"ParentBackground"在Windows Classic主题中不起作用?(DELPHI)

Ker*_*mia 3 delphi themes background parent

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

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

替代文字

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

替代文字

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

Rob*_*edy 6

ParentBackground专门用于主题.如果您没有启用主题,那么它什么都不做.帮助说:

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

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

你正在寻找ParentColor.