Last change
on this file since 1593 was 453, checked in by Kevin Toppenberg, 16 years ago |
Initial upload of TMG-CPRS 1.0.26.69
|
File size:
1.2 KB
|
Line | |
---|
1 | //kt -- Modified with SourceScanner on 8/8/2007
|
---|
2 | unit fOMAction;
|
---|
3 |
|
---|
4 | interface
|
---|
5 |
|
---|
6 | uses
|
---|
7 | Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
|
---|
8 | fAutoSz, rOrders, DKLang;
|
---|
9 |
|
---|
10 |
|
---|
11 | type
|
---|
12 | TCallOnExit = procedure;
|
---|
13 |
|
---|
14 | TfrmOMAction = class(TfrmAutoSz)
|
---|
15 | procedure FormDestroy(Sender: TObject);
|
---|
16 | private
|
---|
17 | FCallOnExit: TCallOnExit;
|
---|
18 | FOrderDialog: Integer;
|
---|
19 | FRefNum: Integer;
|
---|
20 | FAbortAction: boolean;
|
---|
21 | protected
|
---|
22 | procedure InitDialog; virtual;
|
---|
23 | public
|
---|
24 | property CallOnExit: TCallOnExit read FCallOnExit write FCallOnExit;
|
---|
25 | property OrderDialog: Integer read FOrderDialog write FOrderDialog;
|
---|
26 | property RefNum: Integer read FRefNum write FRefNum;
|
---|
27 | property AbortAction: boolean read FAbortAction write FAbortAction;
|
---|
28 | end;
|
---|
29 |
|
---|
30 |
|
---|
31 | var
|
---|
32 | frmOMAction: TfrmOMAction;
|
---|
33 |
|
---|
34 | implementation
|
---|
35 |
|
---|
36 | {$R *.DFM}
|
---|
37 |
|
---|
38 | uses
|
---|
39 | uConst;
|
---|
40 |
|
---|
41 | procedure TfrmOMAction.FormDestroy(Sender: TObject);
|
---|
42 | begin
|
---|
43 | if Assigned(FCallOnExit) then FCallOnExit;
|
---|
44 | if (Owner <> nil) and (Owner is TWinControl)
|
---|
45 | then SendMessage(TWinControl(Owner).Handle, UM_DESTROY, FRefNum, 0);
|
---|
46 | inherited;
|
---|
47 | end;
|
---|
48 |
|
---|
49 | procedure TfrmOMAction.InitDialog;
|
---|
50 | begin
|
---|
51 | FAbortAction := False;
|
---|
52 | end;
|
---|
53 |
|
---|
54 | end.
|
---|
Note:
See
TracBrowser
for help on using the repository browser.