Vcl.ExtActns.TNextTab.OnValidateTab

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property OnValidateTab: TValidateTabEvent read FOnValidateTab write FOnValidateTab;

C++

__property OnValidateTab;

Properties

Type Visibility Source Unit Parent
event published
Vcl.ExtActns.pas
Vcl.ExtActns.hpp
Vcl.ExtActns TNextTab

Description

Occurs when the application is idle or when the action list updates.

Vcl.ExtActns.TNextTab.OnValidateTab inherits from Vcl.ExtActns.TTabAction.OnValidateTab. All content below this line refers to Vcl.ExtActns.TTabAction.OnValidateTab.

Occurs when the application is idle or when the action list updates.

Use the OnValidateTab event rather than the OnUpdate event to update the properties of a tab action when the application is idle. Unlike the OnUpdate event, which prevents the default behavior of the UpdateTarget method, OnValidateTab occurs after UpdateTarget has set the Enabled property to reflect whether the target tab control is enabled.

OnValidateTab can be used to update any of the properties of the tab action, but it is intended primarily for enabling or disabling the action, depending on the contents of the current page of the target tab control.

Sender is the tab action component to update in this event.

TabControl is the target tab control.

Enabled reflects the Enabled property of this action. Set Enabled in the event handler to enable or disable the action depending on current conditions.

See Also