Vcl.ExtActns.TTabAction.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.ExtActns.pas Vcl.ExtActns.hpp |
Vcl.ExtActns | TTabAction |
Description
Enables or disables the action, depending on the target tab control.
Do not call the UpdateTarget method. This method is called automatically when the application is idle so that actions can update themselves according to the current conditions.
Target is the potential target object identified by the application.
In TTabAction, UpdateTarget ignores the Target parameter and checks, instead, whether the TabControl property is set. If TabControl identifies an enabled page control or tab control that has more than one page, UpdateTarget sets the Enabled property to true. If not, it sets Enabled to false.
After setting the Enabled property, UpdateTarget generates an OnValidateTab event, where application-specific code can further determine whether the action should be enabled.