home *** CD-ROM | disk | FTP | other *** search
/ Delphi 5 for Professionals / DELPHI5.iso / AddOns / Books / 4 / EX27.ZIP / CC_UN1.PAS < prev    next >
Encoding:
Pascal/Delphi Source File  |  1996-01-28  |  552 b   |  33 lines

  1. unit Cc_un1;
  2.  
  3. interface
  4.  
  5. uses
  6.   SysUtils, WinTypes, WinProcs, Messages, Classes, Graphics, Controls,
  7.   Forms, Dialogs, StdCtrls, New_btn;
  8.  
  9. type
  10.   TForm1 = class(TForm)
  11.     MyButton1: TMyButton;
  12.     Label1: TLabel;
  13.     procedure FormCreate(Sender: TObject);
  14.   private
  15.     { Private declarations }
  16.   public
  17.     { Public declarations }
  18.   end;
  19.  
  20. var
  21.   Form1: TForm1;
  22.  
  23. implementation
  24.  
  25. {$R *.DFM}
  26.  
  27. procedure TForm1.FormCreate(Sender: TObject);
  28. begin
  29.   Label1.Caption:='ClickCount = '+IntToStr(MyButton1.ClickCount);
  30. end;
  31.  
  32. end.
  33.