rocinantealpha

reference / interface

textbox

A box in a ui block for typing a line of text, or lines of it, that gives the text in it: title = textbox "title". It starts empty, or with start, and keeps its text as the sketch reloads. Any writing the computer can type works, with an input method too, and the clipboard copies and pastes.

words = ""ui [ words = textbox "words" start "hello" ]draw [ text words at 40 150 size 32 ]
what it draws: the whole window, 400 by 300
What the example of textbox draws

How to write it

textbox text [start text] [lines number] [at number number] [width number]

Gives text.

Related