Contents Up Previous Next

wxText is-a wxItem

A text item is used for displaying and editing a single line of text. It must be a child of a panel or dialog box. See also wxMultiText for multiline text items.

wxText value
wxText create
wxText set-value


wxText value

string value

The initial value. The handlers put-value and get-value are defined for this slot. set-value is a synonym for put-value.


wxText create

long ( create)

Creates a single-line text item on the given panel or dialog box. The following slots may be initialized.

The style parameter can be a bit list of the following:

wxTE_PROCESS_ENTER The callback function will receive the event wxEVENT_TYPE_TEXT_ENTER_COMMAND. Note that this will break tab traversal for this panel item under Windows. Single-line text only.
wxTE_PASSWORD The text will be echoed as asterisks. Single-line text only.
wxTE_READONLY The text will not be user-editable.
wxHSCROLL A horizontal scrollbar will be displayed. If wxHSCROLL is omitted, only a vertical scrollbar is displayed, and lines will be wrapped. This parameter is ignored under XView. Multi-line text only.


wxText set-value

bool ( set-value string value)

Set the text item's string value. A synonym for put-value.