This class represents the font chooser dialog.
Derived from
wxDialog
wxWindow
wxEvtHandler
wxObject
Include files
<wx/fontdlg.h>
See also
Overview,
wxFontData,
wxGetFontFromUser
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.
Creates the dialog if it the wxFontDialog object had been initialized using the default constructor. Returns TRUEon success and FALSEif an error occurred.
const wxFontData& GetFontData(void) const
Returns the font data associated with the font dialog.
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.
ymasuda 平成17年11月19日