ucounters.pas
上传用户:hbszzs
上传日期:2008-08-20
资源大小:628k
文件大小:1k
源码类别:

Delphi控件源码

开发平台:

Delphi

  1. unit ucounters;
  2. interface
  3. uses
  4.   Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
  5.   VrControls, VrDesign, VrSystem, VrBlotter, VrThreads;
  6. type
  7.   TForm1 = class(TForm)
  8.     VrBlotter1: TVrBlotter;
  9.     VrCounter1: TVrCounter;
  10.     VrCounter3: TVrCounter;
  11.     VrTimer1: TVrTimer;
  12.     VrTimer2: TVrTimer;
  13.     procedure VrTimer1Timer(Sender: TObject);
  14.     procedure VrTimer2Timer(Sender: TObject);
  15.   private
  16.     { Private declarations }
  17.   public
  18.     { Public declarations }
  19.   end;
  20. var
  21.   Form1: TForm1;
  22. implementation
  23. {$R *.DFM}
  24. procedure TForm1.VrTimer1Timer(Sender: TObject);
  25. begin
  26.   VrCounter1.Value := VrCounter1.Value + 1;
  27. end;
  28. procedure TForm1.VrTimer2Timer(Sender: TObject);
  29. begin
  30.   VrCounter3.Value := VrCounter3.Value - 1;
  31. end;
  32. end.