[英]Delphi - Windows Aero resources
Anyone have any good resources for Delphi and Windows Aero on 7 or Vista? 任何人在7或Vista上有任何Delphi和Windows Aero的良好资源吗?
We're just about to add Windows 7 to our company and want to make sure that our in-house applications use fit in as well as possible. 我们正准备将Windows 7添加到我们公司,并希望确保我们的内部应用程序尽可能适合使用。
Using Delphi 2010 I can add the Glass Frame and the menu bar inherits an Aero look, however the TabControls, Grids and Status bars all stick out as being outdated. 使用Delphi 2010我可以添加Glass Frame,菜单栏继承了Aero外观,但TabControls,Grids和Status栏都显示为过时。
Any help? 有帮助吗?
We include our own manifest resource because, as far as I am aware, Delphi doesn't include the new manifest additions for Windows 7 (and Vista?). 我们包含了我们自己的清单资源,因为据我所知,Delphi不包含Windows 7(和Vista?)的新增加清单。 With help from http://msdn.microsoft.com/en-us/library/dd371711(VS.85).aspx and here and here :
在http://msdn.microsoft.com/en-us/library/dd371711(VS.85).aspx和这里和这里的帮助下:
Create a file "mymanifest.rc" with the single line 使用单行创建文件“mymanifest.rc”
1 24 "my.manifest"
and create a file as below called my.manifest 并创建一个名为my.manifest的文件
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
<assemblyIdentity type="win32" name="OUR COMPANY NAME" version="3.1.0.0" processorArchitecture="*"/>
<dependency>
<dependentAssembly>
<assemblyIdentity type="win32" name="Microsoft.Windows.Common-Controls" version="6.0.0.0" publicKeyToken="6595b64144ccf1df" language="*" processorArchitecture="*"/>
</dependentAssembly>
</dependency>
<trustInfo xmlns="urn:schemas-microsoft-com:asm.v3">
<security>
<requestedPrivileges>
<requestedExecutionLevel level="requireAdministrator" uiAccess="false"/>
</requestedPrivileges>
</security>
</trustInfo>
<compatibility xmlns="urn:schemas-microsoft-com:compatibility.v1">
<application>
<!--The ID below indicates application support for Windows Vista -->
<supportedOS Id="{e2011457-1546-43c5-a5fe-008deee3d3f0}"/>
<!--The ID below indicates application support for Windows 7 -->
<supportedOS Id="{35138b9a-5d96-4fbd-8e2d-a2440225f93a}"/>
</application>
</compatibility>
</assembly>
Then add the mymanifest.rc to your project and turn off the 'enable runtime themes' option as this does the same thing (but less flexible). 然后将mymanifest.rc添加到项目中并关闭“启用运行时主题”选项,因为这会执行相同的操作(但不太灵活)。 The 'requestedExecutionLevel' section can be altered to suit the UAC needs of the app.
可以更改“requestedExecutionLevel”部分以满足应用程序的UAC需求。
Works for us. 适合我们。
I agree that using the Enable Runtime Themes project option should make most controls theme-aware. 我同意使用Enable Runtime Themes项目选项应该使大多数控件能够识别主题。
TMS Components are always being updated to include the latest themes, including Windows 7, and Raize Components allow you to make use of transparency, gradients and theme-aware colours. TMS组件始终更新以包含最新主题,包括Windows 7,而Raize Components允许您使用透明度,渐变和主题感知颜色。
只需将单位XPMan
添加到Uses
列表中即可。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.