home *** CD-ROM | disk | FTP | other *** search
/ Hot Shareware 37 / hot37.iso / FICHEROS / 9TOOL / ADDZIP.ZIP / DELPHI / ABOUT.PAS < prev    next >
Pascal/Delphi Source File  |  1998-02-01  |  1KB  |  53 lines

  1. unit About;
  2.  
  3. interface
  4.  
  5. uses
  6.   SysUtils, WinTypes, WinProcs, Messages, Classes, Graphics, Controls,
  7.   Forms, Dialogs, StdCtrls, Buttons, ExtCtrls, azip;
  8.  
  9. type
  10.   TAboutBox = class(TForm)
  11.     imgImageLeft: TImage;
  12.     imgImageRight: TImage;
  13.     imgAddZip: TImage;
  14.     lblInfo: TLabel;
  15.     lblUsage: TLabel;
  16.     btnOK: TBitBtn;
  17.     lblAddZip: TLabel;
  18.     procedure btnOKClick(Sender: TObject);
  19.     procedure FormClose(Sender: TObject; var Action: TCloseAction);
  20.     procedure FormShow(Sender: TObject);
  21.   private
  22.     { Private declarations }
  23.   public
  24.     { Public declarations }
  25.   end;
  26.  
  27. var
  28.   AboutBox: TAboutBox;
  29.  
  30. implementation
  31.  
  32. {$R *.DFM}
  33.  
  34. procedure TAboutBox.btnOKClick(Sender: TObject);
  35. begin
  36.    Close;
  37. end;
  38.  
  39. procedure TAboutBox.FormClose(Sender: TObject; var Action: TCloseAction);
  40. begin
  41.    Action := caFree;
  42. end;
  43.  
  44. procedure TAboutBox.FormShow(Sender: TObject);
  45. var
  46.    iMajor, iMinor : Integer;
  47. begin
  48.    AddZIP_GetVersion(iMajor, iMinor);
  49.    lblAddZip.Caption := lblAddZip.Caption + IntToStr(iMajor) + '.' + IntToStr(iMinor);
  50. end;
  51.  
  52. end.
  53.