RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
Dialogs.TFontDialogOption Enumeration

TFontDialogOption and TFontDialogOptions are flags that influence the appearance and behavior of a font dialog.

Pascal
TFontDialogOption = (
  fdAnsiOnly,
  fdTrueTypeOnly,
  fdEffects,
  fdFixedPitchOnly,
  fdForceFontExist,
  fdNoFaceSel,
  fdNoOEMFonts,
  fdNoSimulations,
  fdNoSizeSel,
  fdNoStyleSel,
  fdNoVectorFonts,
  fdShowHelp,
  fdWysiwyg,
  fdLimitSize,
  fdScalableOnly,
  fdApplyButton
);
C++
enum TFontDialogOption {
  fdAnsiOnly,
  fdTrueTypeOnly,
  fdEffects,
  fdFixedPitchOnly,
  fdForceFontExist,
  fdNoFaceSel,
  fdNoOEMFonts,
  fdNoSimulations,
  fdNoSizeSel,
  fdNoStyleSel,
  fdNoVectorFonts,
  fdShowHelp,
  fdWysiwyg,
  fdLimitSize,
  fdScalableOnly,
  fdApplyButton
};

Dialogs

TFontDialogOptions is a set of TFontDialogOption values. These are the possible values of TFontDialogOption:

Value 
Meaning 
fdAnsiOnly  
Displays only fonts that use the Windows character set. Symbol fonts are not listed in the dialog.  
fdApplyButton  
Displays an Apply button in the dialog, whether or not there is an OnApply event handler.  
fdEffects  
Displays the Effects check boxes (Strikeout and Underline) and the Color list box in the dialog.  
fdFixedPitchOnly  
Displays only monospaced fonts in the dialog. Proportionally spaced fonts are not listed, nor are TrueType fonts that do not have the fixed-pitch flag set in the style header.  
fdForceFontExist  
Allows the user to enter only fonts that are displayed in the dialog (that is, listed in the Font combo box). If the user tries to enter another font name, an error message appears.  
fdLimitSize  
Enables the MaxFontSize and MinFontSize properties, limiting the range of font sizes that appear in the dialog if these properties have values.  
fdNoFaceSel  
Causes the dialog to open without a preselected font name in the Font combo box.  
fdNoOEMFonts  
Removes OEM fonts from the dialog's combo box. Lists only non-OEM fonts.  
fdScalableOnly  
Displays only scalable fonts in the dialog. Non-scalable (bitmap) fonts are removed from the list.  
fdNoSimulations  
Displays only fonts and font styles that are directly supported by the font definition file. GDI-synthesized bold and italic styles (for bitmap fonts) are not listed.  
fdNoSizeSel  
Causes the dialog to open without a preselected size in the Size combo box.  
fdNoStyleSel  
Causes the dialog to open without a preselected style in the Font Style combo box.  
fdNoVectorFonts  
Removes vector fonts from the dialog's combo box; lists only non-vector fonts. (Vector fonts are Windows 1.0 fonts, such as Roman or Script, which resemble pen-plotter output.)  
fdShowHelp  
Displays a Help button in the dialog.  
fdTrueTypeOnly  
Displays only TrueType fonts in the dialog. Other fonts are not listed.  
fdWysiwyg  
Displays only fonts that are available to both the printer and the screen. Device-specific fonts are not listed in the dialog.  

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!