It's all or nothing. The best you can do is check that there are child
windows currently maximise and then make the new windows maximised too
etc...
But, if I was you I would think hard about whether an MDI is what you want.
I have experienced quite a few bugs in Delphi 5 with MDI (merging menus to
name one). Maybe an SDI Explorer paradigm is ok instead?
If you override the CreateParams function it is possible to have each window
appear on the windows task bar and then use the system functions to manage
them.
TfrmBrowseAuditLog = Class(Tform)
...
procedure CreateParams(var Params: TCreateParams); override;
...
end;
procedure TfrmBrowseAuditLog.CreateParams(var Params: TCreateParams);
begin
inherited CreateParams(Params);
Params.ExStyle := Params.ExStyle or WS_EX_APPWINDOW;
Params.WndParent := HWND_DESKTOP;
end;
You can also use the Global Screen object to manipulate your application's
windows too eg;
procedure MinimiseWindows;
var
i : integer;
begin
// Minimise all the windows! Must use reverse Z order when minimising
for i := Screen.FormCount - 1 downto 0 do
begin
if isBrowseWindow((Screen.Forms[i] as TForm).Caption) then
begin
(Screen.Forms[i] as TForm).WindowState := wsMinimized;
end;
end;
end;
Hope this helps
Ant
________________________________________________________
Antony Gardiner (IT Specialist)
Clear Communications Ltd
One of the Intranet, NRS, CPS, & NMS wannabes
*+64 9 912 4746) Zone 1534
-----Original Message-----
From: Steven Wild [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, 26 April 2000 12:00
To: Multiple recipients of list delphi
Subject: [DUG]: MDI forms
Why does opening a non-maximised MDI Child form over top of a maximised MDI
Child form cause the maximised one to de-maximise?
How do I stop this behaviour from happening?
Is it possible that it is something to do with the MDI parent not liking its
children in assorted states??
Steven
---------------------------------------------------------------------------
New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
Website: http://www.delphi.org.nz