Skip to main content
Table of Contents

TTMSFNCTabSet.OnBeforeChangeTab Event

Occurs before the active tab changes and allows the change to be cancelled.

API unit family: TMSFNCTabSet Declaring type: TTMSFNCTabSet Inherited from: TTMSFNCCustomTabSet

Syntax

FMX.TMSFNCTabSet.hppPascalC++
OnBeforeChangeTab: TTMSFNCTabSetBeforeChangeTabEvent;
__property TTMSFNCTabSetBeforeChangeTabEvent OnBeforeChangeTab = {read=FOnBeforeChangeTab, write=FOnBeforeChangeTab};

Parameters

Name Description
Sender Object that triggered the event.
ACurrentTabIndex Zero-based index of the current tab.
ANewTabIndex Zero-based index of the tab that will become active.
ACanChange Set to False to cancel the tab change.