Autor Beitrag
DSeven
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 39



BeitragVerfasst: Mi 25.06.03 18:23 
Hallo

Weis einer wie man alle MDI Fenster speichern kann? also ich habe da zwar schon eine funktion geschriben:

ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
  if MdiChildCount > 0 then begin
    for i := 0 to MdiChildCount-1 do begin
      (MdiChildren[i] as TChildWin).BringToFront;
      (MdiChildren[i] as TChildWin).DateiSpeichern;
    end;
  end;


Aber das funktioniert nur Teilweise das Problem ist er speichert nicht alle Fenster nur ein paar.
Wie kann man das besser machen?
DSeven Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 39



BeitragVerfasst: Mi 25.06.03 21:06 
so Beitrag kann gelöscht werden ich hab das Problem gefunden.
BungeeBug
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 901



BeitragVerfasst: Mi 25.06.03 21:10 
dann verrat uns doch bitte die Lösung :)

MfG BungeeBug
DSeven Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 39



BeitragVerfasst: Mi 25.06.03 21:52 
Naja :D war nicht so kompliziert wie ich dachte

ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
  if MdiChildCount > 0 then begin
    for i := 0 to MdiChildCount-1 do begin
      (MdiChildren[i] as TChildWin).DateiSpeichern;
    end;
  end;


Damit gehts hat sich wahrscheinlich irgendwie durcheinander gebracht oder so als er im BringFront Aufgerufen hat.