# TextField

TextField inherits from FormObject and defines no instance variables. It has no subclasses.

## Methods defined in TextField:

### Methods for accessing:

- bounds
- bounds: newBounds
- font
- font: fontID
- isDirty
- isDirty: boolean
- isScrollable: direction
  direction is ##upDirection or ##downDirection.
- maxChars
- maxChars: count
- scrollPosition
- scrollPosition: position
- selectionRange
- usable: boolean
- visibleLines

### Methods for initialization:

- reallyAcquireModel

### Methods for private:

- getFieldText
- setFieldText: string redraw: redraw
- textForField

### Methods for updating:

- updateFromModel
- updateModel

### Methods for utility:

- beFullyVisible
- compact
- copySelection
  Don't confuse this with #copy, the Smalltalk object copy method.
- cut
- deleteFrom: start to: stop
- grabFocus
- insert: string
  Answer whether the string was successfully inserted.
- insertionPoint: position
  Set the insertion point to the given index.
- paste
- releaseFocus
- scroll: lines direction: direction
  direction must be ##upDirection or ##downDirection.
- scrollTo: position
  Set string index 'position' as the first character in the first line of the field.
- selectFrom: start to: stop
- undo

Pocket Smalltalk Documentation