class Iup::FontDialog

A FontDialog allows the user to select a font.

Attributes

parentdialog

This dialog will be always in front of the parent dialog. If the parent is minimized, this dialog is automatically minimized. Important Closing the parent will also close the child, but the child dialog's CLOSE_CB method will not be called.

previewtext

The text to use for preview of font selection.

status

read-only returns '1' if 'OK' pressed, or null

title

Title text for the message dialog.

value

Initial value of font for dialog, and return value if 'OK' pressed.

Public Class Methods

new(&block) click to toggle source

Creates a dialog, using the optional block to set its attributes.

# File lib/wrapped/fontdialog.rb, line 19
def initialize &block
  @handle = IupLib.IupFontDlg

  self.instance_eval &block if block_given?
end

Public Instance Methods

popup(x=0, y=0) click to toggle source

Shows the dialog at position x, y.