wxfontdialog()
Description
Displays a dialog (normally an OS common dialog) to allow the selection of a font. This can optionally have a font passed in as the default starting point in the list. If the user exits via the OK button, the selected font will be created as a wxfont object and returned.
Prototype
wxfontdialog
(
type(wxdialogparent)
,
string parent
,
wxfont message
,
string defaultfont
)
result
Parameters
Parameter | Default value | Type name | Description |
---|---|---|---|
parent | .nul | type(wxdialogparent) | Gives the parent of the common dialog, if any. |
message | "" | string | The text shown in the title bar of the common dialog. |
defaultfont | .nul | wxfont | The font that is preselected (if available) in the dialog. |
result | .nul | string |
The result (either "ok" or "cancel" )
will be returned in the string object passed as this parameter. It
must be an existing (preinitialized) object.
|