TCloseEvent is the type of a form's OnClose event handle.
TCloseEvent = procedure (Sender: TObject; var Action: TCloseAction) of object;
(Sender: TObject; var Action: TCloseAction) ( TCloseEvent)();
The TCloseEvent type points to a method that handles the closing of a form. The Sender parameter is the form that the user tried to close. The Action parameter returns the action you want the form to take when it closes.
Setting Action controls how the form responds to the attempt to close it as shown below :
Value |
Meaning |
caNone |
The form is not allowed to close, so nothing happens. |
caHide |
The form is not closed, but just hidden. Your application can still access a hidden form. |
caFree |
The form is closed and all allocated memory for the form is freed. |
caMinimize |
The form is minimized, rather than closed. This is the default action for MDI child forms. |
Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
|
What do you think about this topic? Send feedback!
|