Autor Beitrag
mikeyboy
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 96

WIN XP
D6 Pers
BeitragVerfasst: Di 07.12.04 09:52 
Hallo leute

ich hab nur eine kurze Frage:

Was muss ich beim Button.Click quelltext eingeben damit das Programm beendet wird bei click

Moderiert von user profile iconUdontknow: Verschoben.
jaenicke
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 19346
Erhaltene Danke: 1754

W11 x64 (Chrome, Edge)
Delphi 12 Pro, C# (VS 2022), JS/HTML, Java (NB), PHP, Lazarus
BeitragVerfasst: Di 07.12.04 09:57 
Im Hauptformular:
ausblenden Delphi-Quelltext
1:
Close;					


An allen anderen Stellen:
ausblenden Delphi-Quelltext
1:
Hauptformular.Close;					


Alternativ gibt es auch Application.Terminate; und zu Testzwecken kann man mit SystemExit(0); auch einen Notausstieg bauen, bei dem keine Deinitialisierungen durchgeführt werden.

Ach so: Und wenn du einen TBitBtn verwendest (auf der zweiten Seite), kannst du einfach im Objektinspektor Kind auf bkClose setzen und gar kein OnCLick-Event benutzen. Da giobts dann auch ein Bild dazu...
mikeyboy Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 96

WIN XP
D6 Pers
BeitragVerfasst: Di 07.12.04 10:06 
Ich danke dir!

Aber glaub net dassd mi dadurch los bist, i komm bestimmt wieder! :twisted:


lg mike
jaenicke
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 19346
Erhaltene Danke: 1754

W11 x64 (Chrome, Edge)
Delphi 12 Pro, C# (VS 2022), JS/HTML, Java (NB), PHP, Lazarus
BeitragVerfasst: Di 07.12.04 10:20 
des is aber a kreiz mit de bajuwarischen, net? :wink: :lol: