2020 wxWidgets team. Licensed under the wxWindows Free Documentation Licence, Version 3 wxFontPickerCtrl
wxFontPickerCtrl Functions for wxFontPickerCtrl class

This control allows the user to select a font. The generic implementation is a button which brings up a wxFontDialog when clicked. Native implementation may differ but this is usually a (small) widget which give access to the font-chooser dialog. It is only available if wxUSE_FONTPICKERCTRL is set to 1 (the default).

Styles

This class supports the following styles:

See: wxFontDialog, wxFontPickerEvent

This class is derived (and can use functions) from: wxPickerBase wxControl wxWindow wxEvtHandler

wxWidgets docs: wxFontPickerCtrl

Events

Event types emitted from this class: command_fontpicker_changed

See: new/3 Initializes the object and calls create/4 with all the parameters.

Initializes the object and calls create/4 with all the parameters.

See: create/4 Creates this widget with given parameters.

Creates this widget with given parameters.

Return: true if the control was successfully created or false if creation failed.

Returns the currently selected font.

Returns the currently selected font.

Note that this function is completely different from wxWindow:getFont/1.

Sets the currently selected font.

Sets the currently selected font.

Note that this function is completely different from wxWindow:setFont/2.

Returns the maximum point size value allowed for the user-chosen font.

Returns the maximum point size value allowed for the user-chosen font.

Sets the maximum point size value allowed for the user-chosen font.

Sets the maximum point size value allowed for the user-chosen font.

The default value is 100. Note that big fonts can require a lot of memory and CPU time both for creation and for rendering; thus, specially because the user has the option to specify the fontsize through a text control (see wxFNTP_USE_TEXTCTRL), it's a good idea to put a limit to the maximum font size when huge fonts do not make much sense.

Destructor

Destroys the object.