Autor Beitrag
Apollo
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 125

Windows 7
Delphi 3 Prof., Delphi 2005
BeitragVerfasst: So 23.12.07 18:51 
Hallo Delphianer,
in meinem Programm habe ich ein "kleines" Problem. Über eine Message will ich das Formular schliessen und noch ein paar andere Forms schliesen bzw. aus den Panels denn Text löschen. Hier ist der Quellcode. Keine Ahnung, warum er nicht funktioniert. Danke im voraus.

ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
Procedure TForm5.FormClose(Sender: TObject; var Action: TCloseAction);

If MessageDLG('Wirklich schließen?', mtconfirmation , [mbYes , mbNo], 0) = mrYes then
Action := caFree;
Form12.close;
Form9.close;
Form10.close;
Form8.close;
Panel1.Caption:= '';
Panel4.Caption:= '';
Panel6.Caption:= ''
else
Action := caNone;

_________________
Im Zweifelsfall immer das Richtige tun
Gausi
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 8554
Erhaltene Danke: 481

Windows 7, Windows 10
D7 PE, Delphi XE3 Prof, Delphi 10.3 CE
BeitragVerfasst: So 23.12.07 19:02 
Das muss dann wohl so
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
Procedure TForm5.FormClose(Sender: TObject; var Action: TCloseAction);

If MessageDLG('Wirklich schließen?', mtconfirmation , [mbYes , mbNo], 0) = mrYes then
begin
  Action := caFree;
  Form12.close;
  Form9.close;
  Form10.close;
  Form8.close;
  Panel1.Caption:= '';
  Panel4.Caption:= '';
  Panel6.Caption:= '';
end

else
Action := caNone;

_________________
We are, we were and will not be.