SIMPOL Documentation

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) parent, string message, wxfont defaultfont, string result )

Parameters

ParameterDefault valueType nameDescription
parent.nultype(wxdialogparent) Gives the parent of the common dialog, if any.
message""string The text shown in the title bar of the common dialog.
defaultfont.nulwxfont The font that is preselected (if available) in the dialog.
result.nulstring The result (either "ok" or "cancel") will be returned in the string object passed as this parameter. It must be an existing (preinitialized) object.