Windows with Delphi Windows API (94) Windows Filesystem (41) Windows Forms (69) Windows Graphics (38)
Exchange Links About this site Links to us 
|
Closing an MDI child
This article has not been rated yet. After reading, feel free to leave comments and rate it.
Question:
When I try to close an MDI child form, it only minimizes. How can I make it close when the user clicks on the 'close' icon?
Answer:
Indeed by default MDI children are minimized instead of closed. You can override this by defining a OnClose event like the following:  | |  | | procedure TMDIForm1.FormClose(Sender: TObject, var Action: TCloseAction);
begin
Action := caFree;
end;
| |  | |  | You don't like the formatting? Check out SourceCoder then!
Comments:
|