enable themes for applications

那年仲夏 提交于 2020-01-03 07:30:11

问题


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


回答1:


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.

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




回答2:


You may have to create an application manifest file. The following links have some information:

http://www.codeproject.com/KB/cpp/AddXpStyle.aspx
http://msdn.microsoft.com/en-us/library/ms997646.aspx



来源:https://stackoverflow.com/questions/1613020/enable-themes-for-applications

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!