启用应用程序主题 [英] enable themes for applications

查看:86
本文介绍了启用应用程序主题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个旧的应用程序(从Win XP的delphi 7开始),现在我使用的是delphi 2009(win Vista)。如果我开始一个新项目,则所有按钮的边缘都呈圆形,但是在我的旧应用程序中,所有按钮的外观都是正方形。

i have an old application (started in delphi 7 in Win XP), now i'm using delphi 2009 (win Vista). If i start a new project all buttons have a rouded edge, but in my old app all buttons have a "square"-shape look.

我是否有任何设置?已经错过了吗?
谢谢

is there any setting that i've missed? thanks

推荐答案

在D2009中的项目选项下,有一个启用运行时主题选项,由

Under the Project Options in D2009, there is an "Enable runtime themes" option which is ticked by default for new projects but unticked for pre-existing projects.

选中此选项会将清单文件添加到EXE的资源中,这就是它使用Windows Xp / Vista主题的原因,

Ticking this adds the manifest file to the EXE's resource, which is what makes it use Windows Xp/Vista themes, which is what gives you the rounded buttons.

http://www.stevetrefethen.com/blog/ThemingWindowsApplicationsInDelphi2007.aspx

http://www.stevetrefethen.com/blog/Delphi2007VCLDesignerThemeSupport.aspx

这篇关于启用应用程序主题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆