This class represents the font chooser dialog.
Derived from
wxDialog
wxWindow
wxEvtHandler
wxObject
Include files
<wx/fontdlg.h>
See also
Members
wxFontDialog::wxFontDialog
wxFontDialog::~wxFontDialog
wxFontDialog::GetFontData
wxFontDialog::ShowModal
wxFontDialog(wxWindow* parent, wxFontData* data = NULL)
Constructor. Pass a parent window, and optionally a pointer to a block of font data, which will be copied to the font dialog's font data.
~wxFontDialog()
Destructor.
wxFontData& GetFontData()
Returns the font data associated with the font dialog.
int ShowModal()
Shows the dialog, returning wxID_OK if the user pressed Ok, and wxID_CANCEL otherwise.
If the user cancels the dialog (ShowModal returns wxID_CANCEL), no font will be created. If the user presses OK (ShowModal returns wxID_OK), a new wxFont will be created and stored in the font dialog's wxFontData structure.