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
- Drop
TTMSFNCFontDialogon the form. - Set the initial
FontName,FontSize,FontColor, and style flags. - Handle
OnDialogResultto apply the selected font after the dialog closes. - Call
Executeto 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 |