Table of Contents

TTMSFNCRibbonDefaultToolBar Class

Base toolbar class for ribbon title-bar toolbars; supports theme propagation, options menu, and Quick-Access-Toolbar mode switching.

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

Syntax

TTMSFNCRibbonDefaultToolBar = class(TTMSFNCToolBar, ITMSFNCRibbonTheme)

Methods

Name Description
AddBitmapPicker Adds a bitmap picker control to this toolbar and returns it.
AddColorPicker Adds a color picker control to this toolbar and returns it.
AddFontNamePicker Adds a font-name picker control to this toolbar and returns it.
AddFontSizePicker Adds a font-size picker control to this toolbar and returns it.
AddItemPicker Adds an item picker control to this toolbar and returns it.
AddSeparator Adds a separator element to this toolbar and returns it.
GetOptionsMenuButtonControl Returns the drop-down button used to open the toolbar options menu.
SetTheme Applies a built-in or custom theme to this toolbar and its buttons.

Events

Name Description
OnAppliedTheme Fires after a theme is applied to this toolbar.
OnBeforeApplyTheme Fires before a theme is applied to this toolbar, allowing the default theming to be suppressed.
OnOptionsMenuMoreCommands Fires when the user clicks the "More Commands…" item in the toolbar options menu.