RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TWindowAction Class

TWindowAction is the base class for action objects that work with MDI forms.

Pascal
TWindowAction = class(TAction);
C++
class TWindowAction : public TAction;

TWindowAction implements the common behavior for actions that work on MDI forms. Each descendant class performs a specific task, such as arranging, cascading, closing, tiling, or minimizing MDI child forms. Do not use TWindowAction directly in an application. Instead, use a TWindowAction descendant such as TWindowClose, TWindowCascade, TWindowMinimizeAll, TWindowArrange, TWindowTileHorizontal, or TWindowTileVertical.  

TWindowAction ensures that the action is enabled as long as the target is an MDI parent form. TWindowAction descendants override the ExecuteTarget method to execute their specific function on the targets child forms. 

 

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