Delphi背后---初学者参考之二(1)[6]

[入库:2005年8月18日] [更新:2007年3月24日]

本文简介:选择自 huojiehai 的 blog

 

procedure tmypanel.wmmouseleave(var message: tmessage);

begin

  //确定鼠标进入中是否有代码,如果有执行

  if assigned(fonmouseleave) then

    fonmouseleave(self);

end;

 

end.

u       然后点击【component->install component…】,如下图:

   

在“unit file name”中选中我们刚才的单元mypanelunit.pas,其他选项默认。然后点击“ok”, 在“package dclusr.bpk will be build then install, continue?”选择“yes”,待编译安装完后保存,这样tmypanel控件就被安装到delphi中了。滚动delphi的控件面板到最后,将会看到如下图的控件页mycontrol

本文关键:VCL、API、COM、嵌入式汇编语言
 

本站最佳浏览方式为 分辨率 1024x768 IE 6.0(或更高版本的 IE浏览器)

go top