unit mdiform;
interface
uses
SysUtils, Types, Classes, Variants, QTypes, QGraphics, QControls, QForms,
QDialogs, QStdCtrls, mdichild;
type
TForm2 =
class(TForm)
Button1: TButton;
procedure Button1Click(Sender: TObject);
procedure FormActivate(Sender: TObject);
private
{ Private-Deklarationen }
public
{ Public-Deklarationen }
end;
var
Form2: TForm2;
implementation
{$R *.xfm}
procedure TForm2.Button1Click(Sender: TObject);
var fchild : TForm3;
begin
fchild := TForm3.Create(self);
fchild.show;
end;
procedure TForm2.FormActivate(Sender: TObject);
var fchild : TForm3;
begin
fchild := TForm3.Create(self);
fchild.show;
end;
end.