OpalCreateText

function OpalCreateText(window_ref:integer, x:integer, y:integer, width:integer, height:integer, str:string, max_len:integer, enabled:boolean = TRUE, visible:boolean = TRUE) : integer

Create a new text box widget. A text box allows you to enter a string or number freely. Entering text longer than the widget width will cause it to scroll. Returns the index/reference of the widget.


window_ref:integer = ref of the window that will contain the widget
x:integer = top left postion in the window
y:integer = top left postion in the window
width:integer = width of the widget
height:integer = height of the widget
str:string = starting text
max_len:integer = maximum length of string
[enabled]:boolean = Enable the widget (default TRUE)
[visible]:boolean = Show the widget (default TRUE)
This function returns a integer