通过实例看VCL组件开发全过程(三)[4]

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

本文简介:选择自 hkbarton 的 blog

 

class function tclockgategory . description:string;

begin

 result:=’our component clock description’;

end;

////////////////////////////////////////////////////////////////////////////////////

接下来我们要做的就是修改register过程:

 

procedure register;

begin

  registercomponents('clockandtime', [tclock]);

  ////////////这是delphi7的代码/////////////////////////////

  registerpropertyincategory('clockpro',tclock,'state');

  registerpropertyincategory('clockpro',tclock,'active');

  registerpropertyincategory('clockpro',tclock,'begintime');

  registerpropertyincategory('clockpro',tclock,'waketime');

本文关键:VCL,组件开发
  相关方案
Google
 

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

go top