wxRuby Documentation Home

# Wx::FontDialog

This class represents the font chooser dialog.

## Derived from

Dialog

Window

EvtHandler

Object

## See also

FontData

## Methods

<div id=“methods”

FontDialog.new
FontDialog::get_font_data
FontDialog::show_modal

### FontDialog.new

FontDialog.new(%(arg-type)Window% parent) FontDialog.new(%(arg-type)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 2023-06-09 00:45:27 +0000]