RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TCustomTabControl.CanChange Method

Change permission event dispatcher.

Pascal
function CanChange: Boolean; dynamic;
C++
__fastcall Boolean CanChange();

CanChange is called automatically when an attempt is made to change the selected tab. CanChange generates an OnChanging event so that an OnChanging event handler can prevent the selection from changing. If there is no OnChanging event handler, CanChange returns true, allowing the change. 

Override CanChange to specify additional processing before the OnChanging event handler executes or to block the OnChanging event. 

 

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