home *** CD-ROM | disk | FTP | other *** search
/ Delphi 4 Bible / Delphi_4_Bible_Tom_Swan_IDG_Books_1998.iso / source / EXCEPT1 / MAIN.PAS < prev   
Pascal/Delphi Source File  |  1998-04-13  |  668b  |  40 lines

  1. unit Main;
  2.  
  3. interface
  4.  
  5. uses
  6.   SysUtils, Windows, Messages, Classes, Graphics, Controls,
  7.   Forms, Dialogs, StdCtrls;
  8.  
  9. type
  10.   TMainForm = class(TForm)
  11.     Button1: TButton;
  12.     ScrollBar1: TScrollBar;
  13.     ScrollBar2: TScrollBar;
  14.     procedure Button1Click(Sender: TObject);
  15.   private
  16.     { Private declarations }
  17.   public
  18.     { Public declarations }
  19.   end;
  20.  
  21. var
  22.   MainForm: TMainForm;
  23.  
  24. implementation
  25.  
  26. {$R *.DFM}
  27.  
  28. procedure TMainForm.Button1Click(Sender: TObject);
  29. begin
  30.   try
  31.     ScrollBar1.SetParams(0, 500, 0);
  32.     ScrollBar2.SetParams(0, 500, 0);
  33.   except
  34.     on E: Exception do
  35.       ShowMessage(E.Message);
  36.   end;
  37. end;
  38.  
  39. end.
  40.