Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Close Mainform

0 views
Skip to first unread message

Marco Schellings

unread,
Jul 2, 1998, 3:00:00 AM7/2/98
to

Hi,

I am developing an MDI application. Now when I close the mainform all the childforms also
close. How can I, when the mainform closes, call all of the FormClose procedures of the
childforms?

Thanks,
Marco
--
Please reply to email sc...@bart.nl

Remove no_spam_ from my email.

Francois Labonte

unread,
Jul 2, 1998, 3:00:00 AM7/2/98
to Marco Schellings

Hi: This sould do the trick:
..
private
Procedure WMClose(Var Msg: TWMClose); Message wm_Close;
..
Procedure TForm1.WMClose;
Var
i : Cardinal;
begin
With Form1 do
For i := MDIChildCount - 1 DOWNTO 0 DO
MDIChildren[i].Close;
end;

\Francois

Wacker Philipp

unread,
Jul 7, 1998, 3:00:00 AM7/7/98
to
Hi!

Just call the FormDestroy procedures.

<s...@tirol.com>

Marco Schellings schrieb in Nachricht ...


>Hi,
>
>I am developing an MDI application. Now when I close the mainform all the
childforms also
>close. How can I, when the mainform closes, call all of the FormClose
procedures of the
>childforms?
>

0 new messages