Line | |
---|
1 | //**********************************************************************************************************************
|
---|
2 | // $Id: ufMDIChild.pas,v 1.3 2006/08/05 21:42:34 dale Exp $
|
---|
3 | //----------------------------------------------------------------------------------------------------------------------
|
---|
4 | // DKLang Localization Package
|
---|
5 | // Copyright (c)DK Software, http://www.dk-soft.org/
|
---|
6 | //**********************************************************************************************************************
|
---|
7 | // This is a child MDI form. Attention: read the comments in Main.pas!
|
---|
8 | unit ufMDIChild;
|
---|
9 |
|
---|
10 | interface
|
---|
11 |
|
---|
12 | uses
|
---|
13 | Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, TntForms,
|
---|
14 | DKLang, StdCtrls, TntStdCtrls;
|
---|
15 |
|
---|
16 | type
|
---|
17 | TfMDIChild = class(TTntForm)
|
---|
18 | bCancel: TTntButton;
|
---|
19 | lcMain: TDKLanguageController;
|
---|
20 | lSampleMessage: TTntLabel;
|
---|
21 | procedure FormClose(Sender: TObject; var Action: TCloseAction);
|
---|
22 | procedure FormCreate(Sender: TObject);
|
---|
23 | end;
|
---|
24 |
|
---|
25 | implementation
|
---|
26 | {$R *.dfm}
|
---|
27 |
|
---|
28 | procedure TfMDIChild.FormClose(Sender: TObject; var Action: TCloseAction);
|
---|
29 | begin
|
---|
30 | // Set Action to caFree to destroy the form on close
|
---|
31 | Action := caFree;
|
---|
32 | end;
|
---|
33 |
|
---|
34 | procedure TfMDIChild.FormCreate(Sender: TObject);
|
---|
35 | begin
|
---|
36 | Caption := Name;
|
---|
37 | end;
|
---|
38 |
|
---|
39 | end.
|
---|
Note:
See
TracBrowser
for help on using the repository browser.