home *** CD-ROM | disk | FTP | other *** search
/ Chip 1999 March / Chip_1999-03_cd.bin / zkuste / delphi / D234C13 / RALIB.ZIP / RALib / Tools / RATracer / fTracerTest.pas < prev    next >
Pascal/Delphi Source File  |  1998-08-19  |  1KB  |  60 lines

  1. unit fTracerTest;
  2.  
  3. interface
  4.  
  5. uses
  6.   Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
  7.   StdCtrls;
  8.  
  9. type
  10.   TForm1 = class(TForm)
  11.     Button1: TButton;
  12.     Button2: TButton;
  13.     cbTimer1: TCheckBox;
  14.     procedure FormResize(Sender: TObject);
  15.     procedure Button1Click(Sender: TObject);
  16.     procedure Button2Click(Sender: TObject);
  17.     procedure cbTimer1Click(Sender: TObject);
  18.   private
  19.     { Private declarations }
  20.   public
  21.     { Public declarations }
  22.   end;
  23.  
  24. var
  25.   Form1: TForm1;
  26.  
  27. implementation
  28. uses iMTracer;
  29.  
  30. {$R *.DFM}
  31.  
  32. procedure TForm1.FormResize(Sender: TObject);
  33. begin
  34.   Tracer.Writeln(' Width= '+IntToStr(Width)
  35.   +' Height= '+IntToStr(Height));
  36. end;
  37.  
  38. procedure TForm1.Button1Click(Sender: TObject);
  39. begin
  40.   Tracer.Clear;
  41. end;
  42.  
  43. procedure TForm1.Button2Click(Sender: TObject);
  44. const
  45.   ras : integer = 0;
  46. begin
  47.   Tracer.Writeln(IntToStr(Ras)+' Width= '+IntToStr(Width)
  48.   +' Height= '+IntToStr(Height));
  49.   inc(ras);
  50. end;
  51.  
  52. procedure TForm1.cbTimer1Click(Sender: TObject);
  53. begin
  54.   if cbTimer1.Checked then
  55.     Tracer.TimerStart(1)
  56.   else Tracer.TimerStop(1)
  57. end;
  58.  
  59. end.
  60.