Vcl.StdActns.TWindowClose

From RAD Studio API Documentation
Jump to: navigation, search

Vcl.StdActns.TWindowActionVcl.ActnList.TActionVcl.ActnList.TCustomActionSystem.Actions.TContainedActionSystem.Classes.TBasicActionSystem.Classes.TComponentSystem.Classes.TPersistentTWindowClose

Delphi

TWindowClose = class(TWindowAction)

C++

class PASCALIMPLEMENTATION TWindowClose : public TWindowAction

Properties

Type Visibility Source Unit Parent
class public
Vcl.StdActns.pas
Vcl.StdActns.hpp
Vcl.StdActns Vcl.StdActns

Description

TWindowClose closes the active MDI child form.

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.

See Also