Vcl.Tabs.TTabChangeEvent
C++
typedef void __fastcall (__closure *TTabChangeEvent)(System::TObject* Sender, int NewTab, bool &AllowChange);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
typedef | public | 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.