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

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

本文简介:选择自 hkbarton 的 blog

end;

 

procedure tclock.setbegintime(value: string);

begin

  try

   strtotime(value);

   fbegintime:=value;

   if state=stbackclock then

   begin

    active:=false;

    caption:=value;

   end;

  except

   on exception do

   begin

    fbegintime:='00:00:00';

    if state=stbackclock then caption:='00:00:00';

   end;

  end;

end;

 

procedure tclock.setwaketime(value: string);

begin

 try

   strtotime(value);

本文关键:VCL,组件开发
 

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

go top