Implement most of the features of TextField

It's 1 because it defines which line is the topmost one currently displayed in the text field.