wxfontdialogthis class represents the font chooser dialog. derived from
wxdialog include files <wx/fontdlg.h> see also
overview, members
wxfontdialog::wxfontdialog
wxfontdialog::wxfontdialogwxfontdialog() wxfontdialog(wxwindow* parent) wxfontdialog(wxwindow* parent, const 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.
wxfontdialog::createbool create(wxwindow* parent) bool create(wxwindow* parent, const 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.
wxfontdialog::getfontdataconst wxfontdata& getfontdata() const wxfontdata& getfontdata() returns the font data associated with the font dialog.
wxfontdialog::showmodalint 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.
|