MDIの動作方法は、
"MDI"形式が必要な場合は、組み込みのパッケージまたはcommercialドッキングパッケージの使用を検討し、ドッキング設定を使用してMDIのフィーリングを模倣する必要があります。
私のDelphiアプリケーションでは、私は頻繁にTFramesを使用し、それらをメインフォームに親し、それらを最大化してクライアント領域を占有します。これは、Outlookの見た目に似た何かを提供します。それは、このような小さな何かを行く:これを使用するには
TMyForm = class(TForm)
private
FCurrentModule : TFrame;
public
property CurrentModule : TFrame read FModule write SetCurrentModule;
end;
procedure TMyForm.SetCurrentModule(ACurrentModule : TFrame);
begin
if assigned(FCurrentModule) then
FreeAndNil(FCurrentModule); // You could cache this if you wanted
FCurrentModule := ACurrentModule;
if assigned(FCurrentModule) then
begin
FCurrentModule.Parent := Self;
FCurrentModule.Align := alClient;
end;
end;
を、あなたは、単にこれを行うことができます。
MyForm.CurrentModule := TSomeFrame.Create(nil);
を使用すると、インタフェース(はIModuleインタフェースまたは何かを作成する)を使用する必要があります良いの引数がありますあなたが使っている私はしばしばそれをしますが、ここでその概念を説明するのに必要以上に複雑です。
HTH