RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TWindowMinimizeAll.ExecuteTarget Method

Minimizes all MDI child forms of the target MDI parent.

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 form when the action fires. 

ExecuteTarget sets the Form property to Target, which must be an MDI parent form. It then iterates through that form's MDI children, setting each child form's WindowState to wsMinimized. 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!