Skip to main content

TdxCustomRibbon.OnTabChanging Event

Fires when an active Ribbon tab is about to be changed.

Declaration

property OnTabChanging: TdxRibbonTabChangingEvent read; write;

Remarks

This event fires when an inactive Ribbon tab is clicked, or when this tab is assigned to the Ribbon’s ActiveTab property.

Implement the OnTabChanging event handler to perform additional actions (for example, to prevent the ANewTab from being selected) before the active tab is changed.

ANewTab specifies the tab that is to be made active;

Allow specifies whether the active tab can be changed. Set Allow to True to select ANewTab. Otherwise, the currently active tab will remain selected.

See Also