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

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

问题描述

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

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

推荐答案

您必须在 .pas 组件源文件的同一目录中使用您的单元名称创建一个 .dcr 文件.然后将一个 24x24 位图添加到 dcr 文件中,该位图以组件类的名称命名,例如 TMyNonVisualComp.

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.

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

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

检查这些链接以获取更多信息

Check theses links for more info

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

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