如何使 TSpeedButton 遵循 Windows 主题?
我有一个旧的应用程序(Delphi 5),我想对其进行一些更改。
我已经为其设置了清单,但速度按钮不遵循 Windows 主题。我应该怎么办?
I have an old app (Delphi 5) which I want to give it some changes.
I have set a manifest for it, but speedbuttons are not following the Windows theme. What should I do?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
Delphi 5 对 Windows 视觉样式一无所知(这并不奇怪:-))。如果您确实想继续使用 D5,您的最好的选择可能是使用 Mike Lischke 的 Windows XP 主题管理器。
Delphi 5 doesn't know anything about Windows visual styles (no big surprise :-)). If you really want to stay with D5, your best bet is probably to use Mike Lischke's Windows XP Theme Manager.
在我看来,最好的选择是升级到最新的 Delphi,它完全支持开箱即用的 XP 主题。尝试让 Delphi 5 应用程序在现代 Windows 上看起来原生是一项相当费力的工作(我自己做过,所以我是根据经验发言的),如果你可以升级,这将是最不痛苦的途径。
Your best bet, in my view, is to upgrade to the latest Delphi which fully supports XP themes out of the box. Trying to get a Delphi 5 app to look native on modern Windows is quite a labour (I have done it myself so I speak from experience) and if you can upgrade it will be the least painful route.
尽管这篇文章没有直接回答您的问题,但也许它会以某种方式帮助您:
我同意其他人的观点,简单的方法是升级到最新版本的 Delphi。然而,这是一个快速(如果忽略 UNICODE 转换)但并不便宜的解决方案。一个更便宜(甚至更快)的解决方案可能是使用 Delphi 皮肤包“拉皮条”您的应用程序。您的应用程序看起来可能比“经典”Windows Vista/7 主题更好。
Even though this post is not answering directly your question, MAYBE it will help you somehow:
I agree with others that the easy way will be to upgrade to the latest edition of Delphi. However, this is a fast (if you ignore the UNICODE conversion) but not cheap solution. A cheaper solution (and even faster) may be to 'pimp' your application using a Delphi skin package. Your application may look even better than the 'classic' Windows Vista/7 themes.