mut tbox := ui.textbox(window, 'This is a Textbox.\nIt has an multiline mode that\ncan support\nmultiple lines\nIt also can scroll and stuff')

for i := 0; i < 6; i++ {
     tbox.text += '\nExtra line #' + i.str()
}

tbox.set_bounds(8, 8, 320, 100) // Position absolute
window.add_child(tbox) // Add to Window

Textbox

Preview

Textbox in the Default Theme
Textbox with visible scrollbar

Details

The Textbox is a box that accepts input from the user.
Textbox can act as both a input field (single-line) & and input area (multi-line).