Getting Started with TMS FNC Font Picker
Use TTMSFNCFontNamePicker and TTMSFNCFontSizePicker when users should choose font values inline instead of opening a font dialog.
Create Font Pickers
- Drop
TTMSFNCFontNamePickerandTTMSFNCFontSizePickeron the form. - Set
SelectedFontNameandSelectedFontSizefor initial values. - Handle the selection events to apply the chosen values.
TMSFNCFontNamePicker1.SelectedFontName := 'Arial';
TMSFNCFontNamePicker1.OnFontNameSelected := TMSFNCFontNamePicker1FontNameSelected;
TMSFNCFontSizePicker1.SelectedFontSize := 12;
TMSFNCFontSizePicker1.OnFontSizeSelected := TMSFNCFontSizePicker1FontSizeSelected;
Next Steps
| Task | Guide |
|---|---|
| Select font names and sizes inline | Font name and size pickers |
| Customize the available font size list | Font name and size pickers |