繁体   English   中英

Delphi - Windows Aero资源

[英]Delphi - Windows Aero resources

任何人在7或Vista上有任何Delphi和Windows Aero的良好资源吗?

我们正准备将Windows 7添加到我们公司,并希望确保我们的内部应用程序尽可能适合使用。

使用Delphi 2010我可以添加Glass Frame,菜单栏继承了Aero外观,但TabControls,Grids和Status栏都显示为过时。

有帮助吗?

我们包含了我们自己的清单资源,因为据我所知,Delphi不包含Windows 7(和Vista?)的新增加清单。 http://msdn.microsoft.com/en-us/library/dd371711(VS.85).aspx这里这里的帮助下:

使用单行创建文件“mymanifest.rc”

1 24 "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>

然后将mymanifest.rc添加到项目中并关闭“启用运行时主题”选项,因为这会执行相同的操作(但不太灵活)。 可以更改“requestedExecutionLevel”部分以满足应用程序的UAC需求。

适合我们。

我同意使用Enable Runtime Themes项目选项应该使大多数控件能够识别主题。

TMS组件始终更新以包含最新主题,包括Windows 7,而Raize Components允许您使用透明度,渐变和主题感知颜色。

只需将单位XPMan添加到Uses列表中即可。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM