Difference between revisions of "user should not be able to close form"
From Free Pascal wiki
Jump to navigationJump to search (Created page with "{{user should not be able to close form}} <br> The procedure prevents the termination of the specific program, by the user.<br> Therefor the form event OnCloseQuer...") |
|||
Line 24: | Line 24: | ||
[[Category:LCL]] | [[Category:LCL]] | ||
[[Category:Forms]] | [[Category:Forms]] | ||
− | + | {{AutoCategory}} |
Revision as of 23:52, 10 May 2014
│
Deutsch (de) │
English (en) │
français (fr) │
The procedure prevents the termination of the specific program, by the user.
Therefor the form event OnCloseQuery must to be adapted.
Beispiel:
uses
Forms, ...;
...
procedure TForm1.FormCloseQuery(Sender: TObject; var CanClose: Boolean);
begin
CanClose:=false;
end;
...