Table of Contents

Getting Started with TMS FNC Font Dialog

Use TTMSFNCFontDialog when users need to choose a font family, size, color, and text style from a dialog with a live sample.

Create a Font Dialog

  1. Drop TTMSFNCFontDialog on the form.
  2. Set the initial FontName, FontSize, FontColor, and style flags.
  3. Handle OnDialogResult to apply the selected font after the dialog closes.
  4. Call Execute to show the dialog.
TMSFNCFontDialog1.FontName := 'Courier';
TMSFNCFontDialog1.FontSize := 16;
TMSFNCFontDialog1.FontColor := gcOrange;
TMSFNCFontDialog1.ItalicSelected := True;
TMSFNCFontDialog1.OnDialogResult := TMSFNCFontDialog1DialogResult;
TMSFNCFontDialog1.Execute;

Next Steps

Task Guide
Initialize and apply dialog font selections Font selection dialog
React to live font changes and dialog results Font selection dialog