请问:我自制的组件在packages上能找到,但在组件面板上找不着对应页标签,组件更不用说了。那么我该怎样做才能找到组件?--------------I am a new player!

解决方案 »

  1.   

    你在package里打开你的组件文件(即pas文件),然后找到registerComponent看看就知道这个组件安装在那个面板上了.
      

  2.   

    RegisterComponents('TOcoolEdit', [TOcoolEdit]);这是我的控件中的一句,用它才能将控件加到面板上!
      

  3.   

    Component\Install packages\找到你的包,选中那个checkbox.
    如果找不到,那么点“添加”按钮将你的包加进去即可。
    我爱Delphi!
      

  4.   

    man8888兄,我已经添加了,checkbox也勾了,但还是找不着。源代码以下:
    unit HLink;
    interface
    uses
      Windows,Graphics, Messages, SysUtils,shellAPI, Classes, QControls, forms,dialogs,QStdCtrls;
    type
      THLink = class(TLabel)
      private
        { Private declarations }
      protected
        { Protected declarations }
      public
        { Public declarations }
        constructor create(aowner:Tcomponent);override;
        destructor  destroy;override;
        procedure  click;override;
      published
        { Published declarations }
      end;procedure Register;implementation//const crhand=1;
    constructor THlink.create(aowner:Tcomponent);
    begin
      inherited create(Aowner);
    //  screen.cursors[crhand]:=loadcursor(hinstance,pchar('myhand'));
    //  cursor:=crhand;
      with font do
      begin
        color:=clblue;
      //  style:=[fsUnderline];
      end;
    end;destructor THlink.destroy;
    begin
      inherited destroy;
    end;procedure THlink.click;
    begin
      inherited click;
      if Trim(caption)<>'' then
        shellexecute(getdesktopwindow(),'open',pchar(caption),nil,nil,sw_shownormal);
    end;
    procedure Register;
    begin
      RegisterComponents('mytools', [THLink]);
    end;end.
      

  5.   

    man8888(北京男人)说的, 我觉得应该应该可以解决你的问题
      

  6.   

    包是找得着,是路径形式的:c:\delphi\mytools\ddd.bpl.