1 | unit fAbout;
|
---|
2 |
|
---|
3 | interface
|
---|
4 |
|
---|
5 | uses
|
---|
6 | Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
|
---|
7 | fAutoSz, StdCtrls, ExtCtrls, VA508AccessibilityManager;
|
---|
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 |
|
---|
39 | uses VAUtils, ORFn;
|
---|
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;
|
---|
61 | lblCompanyName.Caption := 'Developed for ' + 'VOE VWPT Patient Enhanced Lookup Version 1.6b'; //vw
|
---|
62 | //lblCompanyName.Caption := 'Developed by the ' + FileVersionValue(Application.ExeName, FILE_VER_COMPANYNAME);
|
---|
63 | lblFileDescription.Caption := 'Compiled ' + FileVersionValue(Application.ExeName, FILE_VER_FILEDESCRIPTION); //date
|
---|
64 | lblFileVersion.Caption := FileVersionValue(Application.ExeName, FILE_VER_FILEVERSION);
|
---|
65 | lblInternalName.Caption := FileVersionValue(Application.ExeName, FILE_VER_INTERNALNAME);
|
---|
66 | lblLegalCopyright.Text := FileVersionValue(Application.ExeName, FILE_VER_LEGALCOPYRIGHT);
|
---|
67 | lblOriginalFileName.Caption := FileVersionValue(Application.ExeName, FILE_VER_ORIGINALFILENAME); //patch
|
---|
68 | lblProductName.Caption := FileVersionValue(Application.ExeName, FILE_VER_PRODUCTNAME);
|
---|
69 | lblComments.Caption := FileVersionValue(Application.ExeName, FILE_VER_COMMENTS); // version comment
|
---|
70 | lblCRC.Caption := 'CRC: ' + IntToHex(CRCForFile(Application.ExeName), 8);
|
---|
71 | end;
|
---|
72 |
|
---|
73 | end.
|
---|