TextField:
Filter:
Classes | GUI > Views

TextField

A view displaying editable text
Location: NOT INSTALLED!

Description

A view displaying editable text.

Class Methods

Inherited class methods

Instance Methods

Data

.string

The text displayed in the view.

Arguments:

A String.

.object

If -setBoth is true, setting this variable also sets -string to the value interpreted as String.

Arguments:

Any object, typically one which makes sense to display as a string, such as a Float.

.setBoth

A variable stating whether setting -object will also set -string.

Arguments:

A Boolean.

.value

Gets the same as -string, but when setting also sets -string to the value interpreted as String regardless of the -setBoth flag.

Arguments:

Any object, typically one which makes sense to display as a string, such as a Float.

.valueAction

Sets -value and triggers -action.

Appearance

.align

The alignment of the displayed text. See Alignment for possible values.

.font

The font used to display the text.

Arguments:

A Font.

.stringColor

The color used to display the text.

Arguments:

A Color.

.background

Setting this variable colors the inside of the field under the text with the given color.

Arguments:

A Color.

Actions

.action

The action object evaluated whenever the user changes the text.

Drag and drop

.defaultGetDrag

Returns:

The displayed -string.

.defaultCanReceiveDrag

Returns:

Always true.

.defaultReceiveDrag

Sets -valueAction to the current drag data.

Inherited instance methods

Examples