简体   繁体   English

Delphi7从Project中删除/恢复MAINICON

[英]Delphi7 Remove/Restore MAINICON from Project

In Delphi7 you can assign/load an icon to a project. 在Delphi7中,您可以为项目分配/加载图标。 After every compilation your application has the assigned icon. 每次编译后,您的应用程序都会分配图标。 I would like to delete/restore the icon back to the original Delphi7 Icon. 我想删除/恢复原来的Delphi7 Icon图标。 I can't find a button/option for this. 我找不到这个按钮/选项。 I also tried deleting the .res file but no luck. 我也尝试删除.res文件,但没有运气。 Any Ideas? 有任何想法吗?

The icon is stored in the .res file. 该图标存储在.res文件中。 If you delete/rename your .res file with the project open in the IDE, maybe the .res data is already loaded and then will be saved again to the new .res. 如果在IDE中打开项目的情况下删除/重命名.res文件,则可能已加载.res数据,然后将再次保存到新的.res。

Anyway, if excluding the .res file is not solving your problem, you can open the .res file with a resource editor tool ( XN Resource Editor for example) and export/change/delete the MAINICON resource as you want. 无论如何,如果排除.res文件无法解决您的问题,您可以使用资源编辑器工具(例如XN资源编辑器 )打开.res文件,并根据需要导出/更改/删除MAINICON资源。

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

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