Vcl.ComCtrls.TCustomTabControl.CanChange

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function CanChange: Boolean; dynamic;

C++

DYNAMIC bool __fastcall CanChange();

Properties

Type Visibility Source Unit Parent
function protected
Vcl.ComCtrls.pas
Vcl.ComCtrls.hpp
Vcl.ComCtrls TCustomTabControl

Description

Change permission event dispatcher.

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.

See Also