wxRuby Documentation Home

Wx::FontDialog

This class represents the font chooser dialog.

Derived from

Dialog

Window

EvtHandler

Object

See also

FontData

Methods

FontDialog.new FontDialog::get_font_data FontDialog::show_modal

FontDialog.new

FontDialog.new(Window parent)
FontDialog.new(Window parent, FontData data)

Constructor. Pass a parent window, and optionally the font data object to be used to initialize the dialog controls.

FontDialog#get_font_data

FontData get_font_data()

Returns the font data associated with the font dialog.

wxFontDialog::show_modal

Integer show_modal()

Shows the dialog, returning ID_OK if the user pressed Ok, and ID_CANCEL otherwise.

If the user cancels the dialog (show_modal returns ID_CANCEL), no font will be created. If the user presses OK, a new Font will be created and stored in the font dialog’s FontData structure.

[This page automatically generated from the Textile source at Thu May 01 00:50:36 +0100 2008]