RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TWindowClose.ExecuteTarget Method

Closes the active MDI child.

Pascal
procedure ExecuteTarget(Target: TObject); override;
C++
virtual __fastcall ExecuteTarget(TObject * Target);

Do not call the ExecuteTarget method. This method is called automatically when the action fires in response to a user action (for example, when the user selects a menu item or presses a tool button that is linked to this action). 

Target is the currently active object when the action fires. 

ExecuteTarget sets the Form property to Target, which must be an MDI parent form. It then obtains a reference to the active MDI child by reading the form's ActiveMDIChild property. It calls this child form's Close method to close the active child form. 

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!