RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
Tabs.TTabChangeEvent Type

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

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

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. 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!