Delphi中关于自定义部件的手动注册的问题.
以下是我定义的一个控件的库单元代码…
unit myconponent;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls, Grids, DBGrids, DB, ADODB;
procedure register ;
type
Tmycomponent = class(Tbutton)
end ;
implementation
procedure register ;
begin
RegisterComponents('Samples',[Tmycomponent]);
end ;
end.
但不知如何注册﹐从其显示在component palette 上﹐且如何定义其显示图标…..
以下是我定义的一个控件的库单元代码…
unit myconponent;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls, Grids, DBGrids, DB, ADODB;
procedure register ;
type
Tmycomponent = class(Tbutton)
end ;
implementation
procedure register ;
begin
RegisterComponents('Samples',[Tmycomponent]);
end ;
end.
但不知如何注册﹐从其显示在component palette 上﹐且如何定义其显示图标…..
解决方案 »
- ADO读取Excel数据的问题
- 求助:想在TEDIT输入内容后,回车就运行一段程序,该怎么控制?
- 还是多线程装树的问题?请各位DELPHI大师请进!ADO+SQL SERVER能否响应多线程?
- 各位非计算机学历的程序员和计算机系的程序员在工资上有没有不同?
- 急求:关于定时监控文件进行拷贝处理的程序(***分)
- 100分求一篇全面的软件程序设计书,收到即给分!!
- 怎样才能知道一个进程用到了哪些DLL?
- Update 2 downloads for Delphi 6 are currently available
- Delphi控件高手请进???????????
- delphi5企业版如何注册
- 请问这么扩大DELPHI应用服务器( 中间层)的用户联接数?(急)
- 自定义控件的问题
delphi菜单中有个 install component