Table of Contents

TTMSFNCFontToolBar Class

Toolbar that exposes common font formatting actions for a bound editor control.

API unit family: TMSFNCToolBars Inherits from: TTMSFNCToolBarBase

Syntax

TTMSFNCFontToolBar = class(TTMSFNCToolBarBase)

Properties

Name Description
BlockBuildControls Controls whether toolbar controls are created during toolbar initialization. (inherited from TTMSFNCToolBarBase)
Control Gets or sets the control that receives toolbar actions. (inherited from TTMSFNCToolBarBase)
Options Gets or sets which font formatting controls are visible.
Settings Gets or sets the current font formatting settings reflected by the toolbar.

Methods

Name Description
BackgroundColorPicker Returns the background color picker control.
BoldButton Returns the bold toggle button.
FirstSeparator Returns the separator after the font name and size controls.
FontNamePicker Returns the font name picker control.
FontSizePicker Returns the font size picker control.
ItalicButton Returns the italic toggle button.
Notify Called when the bound editor or control state changes; override to update toolbar button states accordingly. (inherited from TTMSFNCToolBarBase)
SecondSeparator Returns the separator after the style buttons.
StrikeoutButton Returns the strikeout toggle button.
TextColorPicker Returns the text color picker control.
ThirdSeparator Returns the separator before the color picker controls.
UnderlineButton Returns the underline toggle button.

Events

Name Description
OnApplyBackgroundColor Occurs when a background color is selected.
OnApplyBold Occurs when the bold action is applied.
OnApplyFontName Occurs when a font name is selected.
OnApplyFontSize Occurs when a font size is selected.
OnApplyItalic Occurs when the italic action is applied.
OnApplyStrikeout Occurs when the strikeout action is applied.
OnApplyTextColor Occurs when a text color is selected.
OnApplyUnderline Occurs when the underline action is applied.

Used by