Table of Contents

TTMSFNCFontDialog Class

Font selection dialog component for choosing name, size, color, and style.

API unit family: TMSFNCFontDialog Inherits from: TTMSFNCCustomFontDialog

Syntax

TTMSFNCFontDialog = class(TTMSFNCCustomFontDialog)

Properties

Name Description
ApplicationIsParent When True, the dialog is parented to the application rather than the owning form. (inherited from TTMSFNCCustomFontDialog)
BoldSelected When True, the bold style is pre-selected when the dialog opens. (inherited from TTMSFNCCustomFontDialog)
FontColor Initial font color displayed in the dialog. (inherited from TTMSFNCCustomFontDialog)
FontName Initial font name displayed in the dialog. (inherited from TTMSFNCCustomFontDialog)
FontSize Initial font size displayed in the dialog; -1 means no selection. (inherited from TTMSFNCCustomFontDialog)
ItalicSelected When True, the italic style is pre-selected when the dialog opens. (inherited from TTMSFNCCustomFontDialog)
StrikethroughSelected When True, the strikethrough style is pre-selected when the dialog opens. (inherited from TTMSFNCCustomFontDialog)
UnderlineSelected When True, the underline style is pre-selected when the dialog opens. (inherited from TTMSFNCCustomFontDialog)

Methods

Name Description
Execute Opens the font dialog and blocks until the user closes it. (inherited from TTMSFNCCustomFontDialog)

Events

Name Description
OnDialogClosed Fires after the dialog has been closed by the user. (inherited from TTMSFNCCustomFontDialog)
OnDialogCreated Fires after the dialog form has been created and initialised. (inherited from TTMSFNCCustomFontDialog)
OnDialogResult Fires when the dialog closes, returning the modal result chosen by the user. (inherited from TTMSFNCCustomFontDialog)
OnFontColorChanged Fires when the user selects a different font color in the dialog. (inherited from TTMSFNCCustomFontDialog)
OnFontNameChanged Fires when the user selects a different font name in the dialog. (inherited from TTMSFNCCustomFontDialog)
OnFontSizeChanged Fires when the user selects a different font size in the dialog. (inherited from TTMSFNCCustomFontDialog)
OnFontStyleChanged Fires when the user changes any font style (bold, italic, underline, or strikethrough). (inherited from TTMSFNCCustomFontDialog)

Used by