在Delphi 7中制作Windows集成窗体样式
每个 Delphi 7 开发人员都知道,如果他在 Delphi 7 上编译应用程序,样式将与 Windows 2000 应用程序相同,但是有任何方法可以使其更好,因为应用程序可以具有 Windows 版本的默认主题,如 C++ 和 C#应用程序?
Every Delphi 7 developer knows that if he compile a application on Delphi 7, the style will be as Windows 2000 applications, but there is any method to make this better as the application can have the default theme of the Windows version, as C++ and C# applications?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
尝试将 TXPManifest 组件添加到应用程序的主窗体中。位于 Win32 选项卡中。
TXPManifest 组件没有方法或属性。它所做的只是将 XPMan 单元包含在您的项目中。这反过来会导致某个资源文件包含在项目的可执行文件中。该资源包括一个清单 - 一小段 XML,其中包含有关您正在编写的应用程序的信息以及有关要使用的 comctl32.dll 版本的信息。
Try adding the TXPManifest component to the main form of your application. located in the Win32 Tab.
The TXPManifest component has no methods or properties. All it does is include the XPMan unit in your project. This in turn causes a certain resource file to be included in your project's executable file. The resource includes a manifest - a small piece of XML that contains information about the application you are writing as well as information concerning the version of the comctl32.dll to use.
或者,手动添加您自己的清单资源 - 如果您不厌其烦地了解语法,这可以让您利用更新的 Windows 7 功能。有关详细信息,请参阅此链接,但忽略有关启用运行时主题的部分,如下所示D7 中不存在(我不认为)。
Alternatively add your own manifest resource manually - which allows you to tap into the even newer Windows 7 features, if you can be bothered to fathom out the syntax. See this link for more info but ignore the bit about enabling runtime themes as this doesn't exist in D7 (I don't think).