logo

class

fwt::Text

sys::Obj
  fwt::Widget
    fwt::Text

Text is used to enter and modify text.

Slots

border

const Bool border := true

Draw a border around the text field. Default is true. This field cannot be changed once the widget is constructed.

Source

font

Font font := null

Font for text. Defaults to null (system default).

Source

hscroll

const Bool hscroll := true

True use a horizontal scrollbar for multiLine text widget. Default is true. This field cannot be changed once the widget is constructed.

Source

multiLine

const Bool multiLine := false

False for text fields and true for multiline text areas. Default is false. This field cannot be changed once the widget is constructed.

Source

onAction

|Event| onAction

Callback when Return/Enter key is pressed in a single line text editor (not invoked for multiLine)

Source

onModify

|Event| onModify

Callback when the text is modified.

Source

password

const Bool password := false

True to make this a password text field which hides the characters being typed. Default is false. This field cannot be changed once the widget is constructed.

Source

text

Str text

The widget's current text

Source

vscroll

const Bool vscroll := true

True use a vertical scrollbar for multiLine text widget. Default is true. This field cannot be changed once the widget is constructed.

Source

wrap

const Bool wrap := false

True to make wrap the text of a multiLine text widget. Default is false. This field cannot be changed once the widget is constructed.

Source