Autor Beitrag
Janus
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 33



BeitragVerfasst: Do 27.03.03 17:08 
Hallo Leute, gibt es eine Funktion, um alle MDI-Childs eines Formulars zu schliessen ?

Vielen Dank schon im Voraus, Gruss Säm

_________________
Don't give in the hate, that leaves to the dark side of the force !!!
UGrohne
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Veteran
Beiträge: 5502
Erhaltene Danke: 220

Windows 8 , Server 2012
D7 Pro, VS.NET 2012 (C#)
BeitragVerfasst: Do 27.03.03 17:13 
ausblenden Quelltext
1:
2:
for i:=0 to MDIChildCount-1 do
     MDIChildern[i].Free;


Net nachgeguckt, aber min. so ähnlich.

Gruß
ErnestoChe
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 528

Win 2000 pro, CRUX 2.0
Delphi 6 Pers, Open K3
BeitragVerfasst: Do 27.03.03 20:34 
Hi,

oder so:

ausblenden Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
procedure TForm1.FormClose(Sender: TObject; var Action: TCloseAction);
var
  I: Integer;
begin
  with Form1 do
    for I := MDIChildCount-1 downto 0 do
      MDIChildren[I].Close;
end;


MFG

- Ernesto -