Table of Contents

TMS FNC Font Dialog Guides

TTMSFNCFontDialog shows a modal font-selection dialog that lets users pick a font family, size, colour, and style attributes (bold, italic, underline, strikeout). Assign Font values before calling Execute to pre-select the initial state; read Font back after the dialog closes to apply the chosen font to any control.

Topics

Topic Use when
Font selection dialog You need users to choose font name, size, color, bold, italic, underline, or strikeout style.

Key properties

Property Purpose
Font.Name Initial (and resulting) font family name.
Font.Size Initial (and resulting) font size in points.
Font.Color Initial (and resulting) font colour.
Font.Style Set of style flags: fsBold, fsItalic, fsUnderline, fsStrikeOut.
Execute Shows the dialog modally; returns True when the user clicked OK.
OnFontChanged Fires on each live font change while the dialog is open (preview support).

See also