OpalCreateList

function OpalCreateList(window_ref:integer, x:integer, y:integer, width:integer, height:integer, txt:string, enabled:boolean = TRUE, visible:boolean = TRUE) : integer

Create a new list widget. A list allows you to choose from several pre-defined options arranged vertically. The first option must be specified with txt, other options can be added with OpalAddList. The widget must be tall enough to accomodate the options, or they will be cropped. 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
txt:string = name of the first option
[enabled]:boolean = Enable the widget (default TRUE)
[visible]:boolean = Show the widget (default TRUE)
This function returns a integer