.\" This is a wxWidgets manpage page generated from the XML docs .TH wxFontDialog 3wx 2005-02-15 "wxWidgets" "wxWidgets class documentation" .SH NAME wxFontDialog \- Font chooser dialog .SH DESCRIPTION This class represents the font chooser dialog. .SH "PARENTS" wxDialog wxWindow wxEvtHandler wxObject .SH "INCLUDE FILES" wx/fontdlg.h .SH MEMBERS .SS wxFontDialog () .SS wxFontDialog (wxWindow* parent) .SS wxFontDialog (wxWindow* parentconst wxFontData& data) Constructor. Pass a parent window, and optionally the font data object to be used to initialize the dialog controls. If the default constructor is used, Create() must be called before the dialog can be shown. .SS bool Create (wxWindow* parent) .SS bool Create (wxWindow* parentconst wxFontData& data) Creates the dialog if it the wxFontDialog object had been initialized using the default constructor. Returns true on success and false if an error occurred. .SS const wxFontData& GetFontData () .SS wxFontData& GetFontData () Returns the font data associated with the font dialog. .SS 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, a new wxFont will be created and stored in the font dialog's wxFontData structure. .SH "SEE ALSO" wxDialog wxWindow wxEvtHandler wxObject Overview , wxFontData , wxGetFontFromUser .SH "AUTHORS" Documentation content by Julian Smart, Robert Roebling, Vadim Zeitlin, Robin Dunn, et al Conversion to manpage format by Arnout Engelen (http://bzzt.net), bugreports welcome.