Table of Contents

TTMSFNCRibbonPageControlContainer Class

Panel that hosts one ribbon page's toolbars, supports collapse/expand animation, and participates in keyboard shortcut routing.

API unit family: TMSFNCRibbon Inherits from: TTMSFNCPageControlContainer Implements: ITMSFNCRibbonTheme

Syntax

TTMSFNCRibbonPageControlContainer = class(TTMSFNCPageControlContainer, ITMSFNCRibbonTheme)

Properties

Name Description
CollapseButtonHint Tooltip text displayed on the collapse/expand toggle button of the ribbon page container.
ToolBarCount Number of toolbars currently hosted in this page container.
ToolBars Indexed access to the toolbars hosted in this page container.

Methods

Name Description
AddToolBar Adds a new ribbon toolbar to this page container and returns it.
Draw Paints the page container background and the collapse/expand button.
SetTheme Applies a built-in or custom theme to this page container and its toolbars.

Events

Name Description
OnAppliedTheme Fires after a theme is applied to this page container.
OnBeforeApplyTheme Fires before a theme is applied to this page container, allowing the default theming to be suppressed.