Last change
on this file since 1743 was 453, checked in by Kevin Toppenberg, 16 years ago |
Initial upload of TMG-CPRS 1.0.26.69
|
File size:
1.3 KB
|
Line | |
---|
1 | //kt -- Modified with SourceScanner on 8/7/2007
|
---|
2 | unit fPtSens;
|
---|
3 |
|
---|
4 | interface
|
---|
5 |
|
---|
6 | uses
|
---|
7 | Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
|
---|
8 | ExtCtrls, StdCtrls, Buttons, DKLang;
|
---|
9 |
|
---|
10 | type
|
---|
11 | TfrmPtSens = class(TForm)
|
---|
12 | imgWarning: TImage;
|
---|
13 | memWarning: TMemo;
|
---|
14 | cmdYes: TButton;
|
---|
15 | cmdNo: TButton;
|
---|
16 | lblContinue: TStaticText;
|
---|
17 | DKLanguageController1: TDKLanguageController;
|
---|
18 | procedure FormCreate(Sender: TObject);
|
---|
19 | procedure cmdYesClick(Sender: TObject);
|
---|
20 | procedure cmdNoClick(Sender: TObject);
|
---|
21 | private
|
---|
22 | FContinue: Boolean;
|
---|
23 | public
|
---|
24 | { Public declarations }
|
---|
25 | end;
|
---|
26 |
|
---|
27 | function RestrictedPtWarning: Boolean;
|
---|
28 |
|
---|
29 | implementation
|
---|
30 |
|
---|
31 | {$R *.DFM}
|
---|
32 |
|
---|
33 | function RestrictedPtWarning: Boolean;
|
---|
34 | var
|
---|
35 | frmPtSens: TfrmPtSens;
|
---|
36 | begin
|
---|
37 | frmPtSens := TfrmPtSens.Create(Application);
|
---|
38 | try
|
---|
39 | frmPtSens.ShowModal;
|
---|
40 | Result := frmPtSens.FContinue;
|
---|
41 | finally
|
---|
42 | frmPtSens.Free;
|
---|
43 | end;
|
---|
44 | end;
|
---|
45 |
|
---|
46 | procedure TfrmPtSens.FormCreate(Sender: TObject);
|
---|
47 | begin
|
---|
48 | FContinue := False;
|
---|
49 | imgWarning.Picture.Icon.Handle := LoadIcon(0, IDI_EXCLAMATION);
|
---|
50 | end;
|
---|
51 |
|
---|
52 | procedure TfrmPtSens.cmdYesClick(Sender: TObject);
|
---|
53 | begin
|
---|
54 | FContinue := True;
|
---|
55 | Close;
|
---|
56 | end;
|
---|
57 |
|
---|
58 | procedure TfrmPtSens.cmdNoClick(Sender: TObject);
|
---|
59 | begin
|
---|
60 | FContinue := False;
|
---|
61 | Close;
|
---|
62 | end;
|
---|
63 |
|
---|
64 | end.
|
---|
Note:
See
TracBrowser
for help on using the repository browser.