wxFontPickerCtrl

wxFontPickerCtrl

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.

Creation Parameters

You can use wxEVT_COMMAND_FONTPICKER_CHANGED along with get_fontpicker_event_font.

Functions/Procedures
Supertopics
Subtopics

wxFontPickerCtrl

[func]
get_picker_font
( atom picker )

Category: wxFontPickerCtrl

Returns the currently selected font.


wxFontPickerCtrl

[func]
get_picker_max_point
( atom picker )

Category: wxFontPickerCtrl

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


wxFontPickerCtrl

[proc]
set_picker_font
( atom picker, atom font )

Category: wxFontPickerCtrl

Sets the currently selected font.


wxFontPickerCtrl

[proc]
set_picker_max_point
( atom picker, atom max )

Category: wxFontPickerCtrl

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.