delphi非可视化组件映像 [英] delphi non visual component image

查看:132
本文介绍了delphi非可视化组件映像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在构建一个delphi非可视化组件。如何设置我想要在IDE中的图像?

解决方案

您必须创建名称为.dcr的.dcr文件的单位在.pas组件源文件的同一目录中。然后将dcl文件添加到使用类似TMyNonVisualComp的组件类名称调用的24x24位图。



最后,您必须将此行添加到单元 {$ R your_dcr_file.DCR}



查看这些链接了解更多信息




I am building a delphi non-visual component. How do I set the image I want it to have in the IDE?

解决方案

You must create a .dcr file with the name of your unit in the same directory of the .pas component source file. then add to the dcr file a 24x24 bitmap called with the name of the component class something like TMyNonVisualComp.

finally you must add this line to the unit {$R your_dcr_file.DCR}

Check theses links for more info

这篇关于delphi非可视化组件映像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆