Vcl.ExtActns.TNextTab.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.ExtActns.pas
Vcl.ExtActns.hpp
Vcl.ExtActns TNextTab

Description

Updates the action to reflect current conditions.

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

In TNextTab, UpdateTarget first checks whether the TabControl property specifies an enabled control that can act as a target. If not, UpdateTarget sets the Enabled property to false.

If the target control is enabled, UpdateTarget sets the Enabled property to true and checks whether the target control is on its last page. If so, (and if Wrap is false) it changes the Caption property to the value of LastTabCaption. If not, it restores the Caption property to its original value.

See Also