How To Install Custom Component in Delphi (into existing package).

本文详细介绍了如何在Delphi中安装自定义组件的过程。通过设置单元文件名、浏览选择组件、选择包文件等步骤,可以将新组件添加到Delphi的组件调色板中,并在表单上使用。
    • Start Delphi and select Component | Install Component...
    • This will invoke the "Install Component" dialog.
    • In the "Unit File Name" edit box enter the name of the unit you want to install.
    • If the unit is in the Search Path, a full path name is not required. If the unit directory is not in the Search Path, it will be added to the end.
    • The "Search Path" edit box displays the path used by Delphi to search for files. Leave this as it is.
    • Use the "Package file name" drop-down list to select the name of an installed package.
    • Click on OK.
    • Delphi will prompt you whether you want to rebuild the modified package or not.
    • Click on Yes.
    • After the package is compiled, Delphi will show you a message saying that the new TSomeComponent component was registered and already available as part of the VCL.
    • Close the package detail window, allowing Delphi to save the changes to it.
    • The component is now available in the components palette.
    • Drop the component on a form, and simply: use it.
Tips:
    • In step 3, you can click on the Browse button to browse for the component (unit)
    • In step 6, default package is "Borland User Components", there is no special need to alter this.
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值