[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] | Reference for unit 'Dialogs' (#lcl)

# TFontDialog

[Properties (by Name)] [Methods (by Name)] [Events (by Name)]

Font Dialog

## Declaration

Source position: dialogs.pp line 333

`type TFontDialog = class(TCommonDialog)`
``
`class procedure WSRegisterClass; override;` |  | WSRegisterClass - Register this Class for the current Widget Set
`protected`
`function DefaultTitle; override;` |  | DefaultTitle - returns the default title for a dialog
`public`
`procedure ApplyClicked; virtual;` |  | ApplyClicked - software emulation of the OnApplyClicked event
`constructor Create(); override;`
`destructor Destroy; override;` |  |
`published`
`property Title;` |  | The Title or Caption to be shown at the top of the dialog box
`property Font: TFont; [rw]` |  | Property to store the chosen font.
`property MinFontSize: Integer; [rw]` |  | MinFontSize - minimum size for the font
`property MaxFontSize: Integer; [rw]` |  | MaxFontSize - maximum size for the font
`property Options: TFontDialogOptions; [rw]` |  | A set of options available from TFontDialogOptions
`property OnApplyClicked: TNotifyEvent; [rw]` |  | OnApplyClicked - event handler for a click on the Apply button (ie the user wishes to apply the selected font)
`property PreviewText: String; [rw]` |  | The text displayed as an example in the preview pane of the dialog, using the selected font
`end;`

## Inheritance

`TFontDialog` |  | Font Dialog
`TCommonDialog` |  | TCommonDialog : the base type from which other dialogs are derived
`TLCLComponent` |  | TLCLComponent - base class for LCL components
`TComponent,IUnknown,IInterfaceComponentReference`
`TPersistent`
`TObject`

## Description

Font Dialog: opens a dialog allowing choice of a font for textual displays

The latest version of this document can be found at lazarus-ccr.sourceforge.net .