最近搞了个delphi10.3来玩,把一个旧的程序改到64bit下编译,成功后,发现两个问题:
- 画面和图片变小了。
这个可以调整参数:Tools-Options-Application-Manifest-DPI Awareness,被它设置为“Per Monitor V2”了,改为“none” - 任务栏上的图标是白色空图标。
很奇怪,参数Tools-Options-Application-Icons-icon也已经设置了。
打开*.dproj文件,发现:<PropertyGroup Condition="'$(Cfg_2_Win32)'!=''"> <Icon_MainIcon>DDManager_Icon.ico</Icon_MainIcon> <VerInfo_MajorVer>5</VerInfo_MajorVer> <VerInfo_Keys>CompanyName=Acroprise Inc.;FileVersion=5.2.17.2161;InternalName=;LegalCopyright=;LegalTrademarks=;OriginalFilename=;ProductName=DDManager;ProductVersion=5.2;Comments=;ProgramID=com.embarcadero.$(MSBuildProjectName);FileDescription=$(MSBuildProjectName)</VerInfo_Keys> <BT_BuildType>Debug</BT_BuildType> <VerInfo_MinorVer>2</VerInfo_MinorVer> <VerInfo_Release>17</VerInfo_Release> <VerInfo_Build>2161</VerInfo_Build> <AppEnableRuntimeThemes>true</AppEnableRuntimeThemes> </PropertyGroup> <PropertyGroup Condition="'$(Cfg_2_Win64)'!=''"> <AppEnableRuntimeThemes>true</AppEnableRuntimeThemes> <VerInfo_MajorVer>5</VerInfo_MajorVer> <VerInfo_MinorVer>2</VerInfo_MinorVer> <VerInfo_Release>17</VerInfo_Release> <VerInfo_Build>2161</VerInfo_Build> <VerInfo_Keys>CompanyName=Acroprise Inc.;FileDescription=$(MSBuildProjectName);FileVersion=5.2.17.2161;InternalName=;LegalCopyright=;LegalTrademarks=;OriginalFilename=;ProgramID=com.embarcadero.$(MSBuildProjectName);ProductName=$(MSBuildProjectName);ProductVersion=5.2;Comments=</VerInfo_Keys> </PropertyGroup>
在win64的节点下,少了:<Icon_MainIcon>DDManager_Icon.ico</Icon_MainIcon>,加上后OK。