Version: 3.0.5
Loading...
Searching...
No Matches
fontdlg.h File Reference

Classes

class  wxFontDialog
 This class represents the font chooser dialog. More...
 

Functions

wxFont wxGetFontFromUser (wxWindow *parent, const wxFont &fontInit, const wxString &caption=wxEmptyString)
 Shows the font selection dialog and returns the font selected by user or invalid font (use wxFont::IsOk() to test whether a font is valid) if the dialog was cancelled.
 

Function Documentation

◆ wxGetFontFromUser()

wxFont wxGetFontFromUser ( wxWindow parent,
const wxFont fontInit,
const wxString caption = wxEmptyString 
)

Shows the font selection dialog and returns the font selected by user or invalid font (use wxFont::IsOk() to test whether a font is valid) if the dialog was cancelled.

Parameters
parentThe parent window for the font selection dialog.
fontInitIf given, this will be the font initially selected in the dialog.
captionIf given, this will be used for the dialog caption.

Include file:

#include <wx/fontdlg.h>