Vcl.Tabs.TTabChangeEvent

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

TTabChangeEvent = procedure(Sender: TObject; NewTab: Integer;
var AllowChange: Boolean) of object;

C++

typedef void __fastcall (__closure *TTabChangeEvent)(System::TObject* Sender, int NewTab, bool &AllowChange);

Properties

Type Visibility Source Unit Parent
type
typedef
public
Vcl.Tabs.pas
Vcl.Tabs.hpp
Vcl.Tabs Vcl.Tabs

Description

TTabChangeEvent is the type for event handlers that respond when the current tab of a TTabSet control changes.

Sender is the TTabSet control whose tab is about to change.

NewTab is the tab that is about to become the selected tab.

AllowChange determines whether the change is permitted. If the event handler sets AllowChange to false, the user won't be able to select the new tab, in effect disabling it.

See Also