Vcl.ComCtrls.TTabControl.OnChanging

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property OnChanging: TTabChangingEvent read FOnChanging write FOnChanging;

C++

__property OnChanging;

Properties

Type Visibility Source Unit Parent
event published
Vcl.ComCtrls.pas
Vcl.ComCtrls.hpp
Vcl.ComCtrls TTabControl

Description

Occurs immediately before a new tab is selected.

Vcl.ComCtrls.TTabControl.OnChanging inherits from Vcl.ComCtrls.TCustomTabControl.OnChanging. All content below this line refers to Vcl.ComCtrls.TCustomTabControl.OnChanging.

Occurs immediately before a new tab is selected.

Write an OnChanging event handler to take specific action immediately before the selected tab changes. Set the AllowChange parameter to False to prevent the change.

Use an OnChanging event handler to prevent the user from leaving a tab setting until certain conditions have been met. An OnChanging event handler can also be used to save information about the current state of the tab control before it is changed by a new tab selection.

Note: The event is not called if you change the active page in code, for example, by setting the value of TPageControl.ActivePage.

OnChanging is an event handler of type Vcl.ComCtrls.TTabChangingEvent.

See Also

Code Examples