home *** CD-ROM | disk | FTP | other *** search
/ io Programmo 33 / IOPROG_33.ISO / COMMON / APPLICAZ.ZIP / Applicazione / MainCode.pas < prev    next >
Encoding:
Pascal/Delphi Source File  |  1998-12-09  |  849 b   |  46 lines

  1. unit MainCode;
  2.  
  3. interface
  4.  
  5. uses
  6.   Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
  7.   StdCtrls;
  8.  
  9. type
  10.   TMainFrm = class(TForm)
  11.     Button1: TButton;
  12.     Button2: TButton;
  13.     procedure FormCreate(Sender: TObject);
  14.     procedure FormCloseQuery(Sender: TObject; var CanClose: Boolean);
  15.   private
  16.     { Private declarations }
  17.   public
  18.     { Public declarations }
  19.   end;
  20.  
  21. var
  22.   MainFrm: TMainFrm;
  23.  
  24. implementation
  25.  
  26. {$R *.DFM}
  27.  
  28. uses Lang_Intf;
  29.  
  30. procedure TMainFrm.FormCreate(Sender: TObject);
  31. begin
  32.  InitLanguage( 'English.dll' );
  33.  Caption := GetFormCaption;
  34.  Button1.Caption := GetButton1Caption;
  35.  Button2.Caption := GetButton2Caption;
  36.  DoneLanguage; 
  37. end;
  38.  
  39. procedure TMainFrm.FormCloseQuery(Sender: TObject; var CanClose: Boolean);
  40. begin
  41.  DoneLanguage;
  42.  CanClose := True;
  43. end;
  44.  
  45. end.
  46.