[456] | 1 | unit fAbout;
|
---|
| 2 |
|
---|
| 3 | interface
|
---|
| 4 |
|
---|
| 5 | uses
|
---|
| 6 | Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
|
---|
[830] | 7 | fAutoSz, StdCtrls, ExtCtrls, VA508AccessibilityManager;
|
---|
[456] | 8 |
|
---|
| 9 | type
|
---|
| 10 | TfrmAbout = class(TfrmAutoSz)
|
---|
| 11 | Panel1: TPanel;
|
---|
| 12 | Image1: TImage;
|
---|
| 13 | cmdOK: TButton;
|
---|
| 14 | lblProductName: TStaticText;
|
---|
| 15 | lblFileVersion: TStaticText;
|
---|
| 16 | lblCompanyName: TStaticText;
|
---|
| 17 | lblComments: TStaticText;
|
---|
| 18 | lblCRC: TStaticText;
|
---|
| 19 | lblLegalCopyright: TMemo;
|
---|
| 20 | bvlBottom: TBevel;
|
---|
| 21 | lblFileDescription: TStaticText;
|
---|
| 22 | lblInternalName: TStaticText;
|
---|
| 23 | lblOriginalFileName: TStaticText;
|
---|
| 24 | bvl508Disclaimer: TBevel;
|
---|
| 25 | lbl508Notice: TMemo;
|
---|
| 26 | procedure FormCreate(Sender: TObject);
|
---|
| 27 | private
|
---|
| 28 | { Private declarations }
|
---|
| 29 | public
|
---|
| 30 | { Public declarations }
|
---|
| 31 | end;
|
---|
| 32 |
|
---|
| 33 | procedure ShowAbout;
|
---|
| 34 |
|
---|
| 35 | implementation
|
---|
| 36 |
|
---|
| 37 | {$R *.DFM}
|
---|
| 38 |
|
---|
[830] | 39 | uses VAUtils, ORFn;
|
---|
[456] | 40 |
|
---|
| 41 | procedure ShowAbout;
|
---|
| 42 | var
|
---|
| 43 | frmAbout: TfrmAbout;
|
---|
| 44 | begin
|
---|
| 45 | frmAbout := TfrmAbout.Create(Application);
|
---|
| 46 | try
|
---|
| 47 | ResizeFormToFont(TForm(frmAbout));
|
---|
| 48 | frmAbout.lblLegalCopyright.SelStart := 0;
|
---|
| 49 | frmAbout.lblLegalCopyright.SelLength := 0;
|
---|
| 50 | frmAbout.lbl508Notice.SelStart := 0;
|
---|
| 51 | frmAbout.lbl508Notice.SelLength := 0;
|
---|
| 52 | frmAbout.ShowModal;
|
---|
| 53 | finally
|
---|
| 54 | frmAbout.Release;
|
---|
| 55 | end;
|
---|
| 56 | end;
|
---|
| 57 |
|
---|
| 58 | procedure TfrmAbout.FormCreate(Sender: TObject);
|
---|
| 59 | begin
|
---|
| 60 | inherited;
|
---|
[1693] | 61 | lblCompanyName.Caption := 'Developed by the ' + FileVersionValue(Application.ExeName, FILE_VER_COMPANYNAME);
|
---|
[456] | 62 | lblFileDescription.Caption := 'Compiled ' + FileVersionValue(Application.ExeName, FILE_VER_FILEDESCRIPTION); //date
|
---|
| 63 | lblFileVersion.Caption := FileVersionValue(Application.ExeName, FILE_VER_FILEVERSION);
|
---|
| 64 | lblInternalName.Caption := FileVersionValue(Application.ExeName, FILE_VER_INTERNALNAME);
|
---|
| 65 | lblLegalCopyright.Text := FileVersionValue(Application.ExeName, FILE_VER_LEGALCOPYRIGHT);
|
---|
| 66 | lblOriginalFileName.Caption := FileVersionValue(Application.ExeName, FILE_VER_ORIGINALFILENAME); //patch
|
---|
| 67 | lblProductName.Caption := FileVersionValue(Application.ExeName, FILE_VER_PRODUCTNAME);
|
---|
| 68 | lblComments.Caption := FileVersionValue(Application.ExeName, FILE_VER_COMMENTS); // version comment
|
---|
| 69 | lblCRC.Caption := 'CRC: ' + IntToHex(CRCForFile(Application.ExeName), 8);
|
---|
| 70 | end;
|
---|
| 71 |
|
---|
| 72 | end.
|
---|