Class Fox::FXInputDialog
In: rdoc-sources/FXInputDialog.rb
Parent: FXDialogBox

An FXInputDialog is a simple dialog which is used to obtain a text string, integer, or real number from the user. A "password" mode allows the key-in to remain hidden.

Input dialog options

INPUTDIALOG_STRING:Ask for a string
INPUTDIALOG_INTEGER:Ask for an integer number
INPUTDIALOG_REAL:Ask for a real number
INPUTDIALOG_PASSWORD:Do not reveal key-in

Methods

Attributes

numColumns  [RW]  Number of visible columns of text [Integer]
text  [RW]  Input string [String]

Public Class methods

Prompt the user for an integer number, starting from the specified initial value. Return the input value if the user clicks OK, else return nil. The input is constrained between lo and hi.

Prompt the user for a real number, starting from the specified initial value. Return the input value if the user clicks OK, else return nil. The input is constrained between lo and hi.

Prompt the user for a string, with the text field initialized to the specified initial value. Return the input value if the user clicks OK, else return nil.

Prompt for a string, in a free-floating window..

Construct input dialog box with given caption, icon, and prompt text. If owner is a window, the dialog box will float over that window. If owner is the application, the dialog box will be free-floating.

Public Instance methods

Return limits (a two-element array of floats).

Change limits (where lo and hi are numbers).

Return the input dialog‘s input string text

[Validate]