Autor Beitrag
G-McKree
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 178



BeitragVerfasst: Fr 06.06.03 19:31 
is es möglich ne action auszuführen, wenn ein programm beendet wird?
Raphael O.
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 1596


VS 2013
BeitragVerfasst: Fr 06.06.03 23:56 
shcau dir mal die ereignisse onclose bzw. onclosequery an, wobei ich nicht weiß, ob die auch noch bei application.terminate ausgeführt werden...
beim normalen close aber auf jeden fall...
aber ein test ist es Wert ;)
G-McKree Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 178



BeitragVerfasst: Sa 07.06.03 08:19 
ich brauch aber ne action, die passiert, wenn das prog beendet wird, nicht nur die form
Aya
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 1964
Erhaltene Danke: 15

MacOSX 10.6.7
Xcode / C++
BeitragVerfasst: Sa 07.06.03 09:33 
Hi,

für welchen Zweck ist es denn gedacht..??? Nur damit du mitbekomsmt wenn dein Programm beendet wurde??

Da würde ich das OnClose vom MainFormular einfach nehmen..

Ansonsten kannst du es auch so machen:
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
function OnTerminate: Boolean;
begin
  //Hier deinen Code!
  Result:=true;
end;

procedure TForm1.OnCreate...
begin
  AddTerminateProc(OnTerminate);
end;


Au'revoir,
Aya~

_________________
Aya
I aim for my endless dreams and I know they will come true!
G-McKree Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 178



BeitragVerfasst: Sa 07.06.03 13:30 
super, das funz, aber bringt mir leider nix

ich wollte ein prog schreiben, das sich merkt, wann es aufgerufen und beendet wurde

die form wollte ich allerdings verschwinden lassen, so dass das prog nur als process im taskmanager weiterläuft

funzt aber alles nich so richtig