home *** CD-ROM | disk | FTP | other *** search
- {*********************************************************}
- {* ESABOUT0.PAS 1.05 *}
- {* Copyright (c) 1997-98 TurboPower Software Co *}
- {* All rights reserved. *}
- {*********************************************************}
-
- {$I ES.INC}
-
- {$B-} {Complete Boolean Evaluation}
- {$I+} {Input/Output-Checking}
- {$P+} {Open Parameters}
- {$T-} {Typed @ Operator}
- {$W-} {Windows Stack Frame}
- {$X+} {Extended Syntax}
-
- {$IFNDEF Win32}
- {$G+} {286 Instructions}
- {$N+} {Numeric Coprocessor}
- {$C MOVEABLE,DEMANDLOAD,DISCARDABLE}
- {$ENDIF}
-
- unit EsAbout0;
-
- interface
-
- uses
- {$IFDEF Win32} Windows, {$ELSE} WinTypes, WinProcs, {$ENDIF}
- Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
- StdCtrls, DsgnIntf, ExtCtrls, EsData;
-
- type
- TEsAboutForm = class(TForm)
- Panel1: TPanel;
- Image1: TImage;
- lblVersion: TLabel;
- btnOK: TButton;
- Bevel1: TBevel;
- procedure btnOKClick(Sender: TObject);
- procedure FormCreate(Sender: TObject);
- private
- { Private declarations }
- public
- { Public declarations }
- end;
-
- TEsVersionProperty = class(TStringProperty)
- public
- function GetAttributes: TPropertyAttributes;
- override;
- procedure Edit;
- override;
- end;
-
- implementation
-
- {$R *.DFM}
-
-
- {*** TEsVersionProperty ***}
-
- function TEsVersionProperty.GetAttributes: TPropertyAttributes;
- begin
- Result := [paDialog, paReadOnly];
- end;
-
- procedure TEsVersionProperty.Edit;
- begin
- with TEsAboutForm.Create(Application) do begin
- try
- ShowModal;
- finally
- Free;
- end;
- end;
- end;
-
-
- {*** TEsAboutForm ***}
-
- procedure TEsAboutForm.btnOKClick(Sender: TObject);
- begin
- Close;
- end;
-
- procedure TEsAboutForm.FormCreate(Sender: TObject);
- begin
- Top := (Screen.Height - Height) div 3;
- Left := (Screen.Width - Width) div 2;
- lblVersion.Caption := 'Version ' + EsVersionStr;
- end;
-
- end.
-