Sign in Join
Wiki copytemporary

user should not be able to close form/de: what changed

Revision 0 to 1. Removed lines have a minus sign; added lines have a plus sign.

Title: user should not be able to close form/de

OldNewLine
1+Zurück zur Seite [[code examples/de|Code Beispiele]].
2+
3+Die Prozedur verhindert das Beenden des eigenen Programms durch den Anwender.
4+
5+Dafür muss das Ereignis OnCloseQuery der [[TForm/de|Form]] angepasst werden.
6+
7+Beispiel:
8+
9+``` pascal
10+uses
11+ Forms, ...;
12+
13+ ...
14+
15+procedure TForm1.FormCloseQuery(Sender: TObject; var CanClose: Boolean);
16+begin
17+ CanClose:=false;
18+end;
19+
20+ ...
21+
22+```
23+
24+---
25+*From the Free Pascal wiki, page "user should not be able to close form/de", as it stood on 2020-03-03 after a change by Trev, out of the wiki's dump of 2024-05-26. Copyright stays with the author who wrote it, according to the old wiki's [[Licensing]] page. If you have concerns about this material, [message the admin](/wiki-contact).*

Back to history