source: cprs/trunk/CPRS-Chart/fAbout.pas@ 1679

Last change on this file since 1679 was 1679, checked in by healthsevak, 9 years ago

Updating the working copy to CPRS version 28

File size: 2.3 KB
Line 
1unit fAbout;
2
3interface
4
5uses
6 Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
7 fAutoSz, StdCtrls, ExtCtrls, VA508AccessibilityManager;
8
9type
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
33procedure ShowAbout;
34
35implementation
36
37{$R *.DFM}
38
39uses VAUtils, ORFn;
40
41procedure ShowAbout;
42var
43 frmAbout: TfrmAbout;
44begin
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;
56end;
57
58procedure TfrmAbout.FormCreate(Sender: TObject);
59begin
60 inherited;
61 lblCompanyName.Caption := 'Developed by the ' + FileVersionValue(Application.ExeName, FILE_VER_COMPANYNAME);
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);
70end;
71
72end.
Note: See TracBrowser for help on using the repository browser.