wxRuby Documentation Home

Wx::TextEntryDialog

This class represents a dialog that requests a one-line text string from the user. It is implemented as a generic Widgets dialog.

Derived from

Dialog

Window

EvtHandler

Object

See also

TextEntryDialog overview

Methods

TextEntryDialog.new

TextEntryDialog.new(Window parent,  String message, 
                    String caption = "Please enter text", 
                    String defaultValue = "", 
                    Integer style = OK CANCEL CENTRE, 
                    Point pos = DEFAULT_POSITION)

Constructor. Use TextEntryDialog#show_modal to show the dialog.

Parameters

Destructor.

TextEntryDialog#get_value

String get_value()

Returns the text that the user has entered if the user has pressed OK, or the original value if the user has pressed Cancel.

TextEntryDialog#set_value

set_value(String value)

Sets the default text value.

TextEntryDialog#show_modal

Integer show_modal()

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

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