Vcl.StdActns.TWindowClose.UpdateTarget
Delphi
procedure UpdateTarget(Target: TObject); override;
C++
virtual void __fastcall UpdateTarget(System::TObject* Target);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
procedure function |
public | Vcl.StdActns.pas Vcl.StdActns.hpp |
Vcl.StdActns | TWindowClose |
Description
Enables or disables the action, depending on whether the target form an active child.
Do not call the UpdateTarget method. This method is called automatically so that actions can update themselves according to current conditions.
In TWindowClose, UpdateTarget checks that the target object is an MDI parent form with a non-nil (Delphi) or NULL (C++) ActiveMDIChild property. If so, UpdateTarget sets the Enabled property to true. Otherwise, it sets Enabled to false.