RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TWindowClose Class

TWindowClose closes the active MDI child form.

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

StdActns

Add TWindowClose to an action list to allow users to close the active MDI child form. Controls such as menu items and tool buttons linked to this action cause the application to call the Close method of the active MDI child. 

TWindowClose is designed to work with an MDI parent form as a target. It automatically disables itself if the active form is not an MDI parent or if it has no active MDI child. 

 

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