procedure SetActiveModuleForm(const Value: TBaseForm);
begin
if Value <> FActiveModuleForm then
begin
if Assigned(FActiveModuleForm) then
FActiveModuleForm.Hide;
FActiveModuleForm := Value;
if Assigned(FActiveModuleForm) then
begin
with FActiveModuleForm do
begin
BorderStyle := bsNone;
Align := alClient;
Parent := pnlClient;
Height := Parent.ClientHeight;
Width := Parent.ClientWidth;
Show;
if CanFocus then
SetFocus;
end;
end;
end;
end;