Vcl.StdActns.TWindowAction.UpdateTarget

From RAD Studio API Documentation
Jump to: navigation, search

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 TWindowAction

Description

Enables or disables the action, depending on whether the target form has MDI children.

Do not call the UpdateTarget method. This method is called automatically so that actions can update themselves according to current conditions.

In TWindowAction, UpdateTarget checks that the target object is an MDI parent form with an MDIChildCount property greater than 0. If so, UpdateTarget sets the Enabled property to true. Otherwise, it sets Enabled to false.

See Also