RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TTabAction.BeforeTabChange Event

Occurs immediately before the action changes the page of the associated tab control.

Pascal
property BeforeTabChange: TNotifyEvent;
C++
__property TNotifyEvent BeforeTabChange;

Write a BeforeTabChange event handler to perform any additional tasks before the tab action changes the current page of the associated tab control. Typically, this event is used to save or respond to the changes the user made on the current page before it changes.

Note: BeforeTabChange only occurs if the action tries to change the page of the tab control (even if it is not successful). If the action attempts some other task (for example, when TNextPage is on the last page of the tab control), BeforeTabChange does not occur.
 

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