OpalSetValue

Procedure OpalSetValue(window_ref:integer, widget_ref:integer, value:integer, value_min:integer = $80000000, value_max:integer = $80000000)

Change the value property of the widget referenced.

For checkboxes, radio buttons and toggle buttons, this is the TRUE or -1 for selected, FALSE or 0 for unselected.

For drop-downs and list boxes, this is the index of the selected option.

For textboxes, this allows you to set the contents to a number. You can specify value_max as the maximum length of the string.

For sliders, this sets the bar position. Also, if you specify value_min and value_max you can change the range as well. Omitting or using $80000000 will leave value_min and value_max unchanged. Bad things may happen if value_min>value_max.


window_ref:integer = ref of the window that contains the widget
widget_ref:integer = ref of the widget
value:integer = value or state of widget
[value_min]:integer = minimum value - for sliders only (default $80000000)
[value_max]:integer = maximum value - for sliders only (default $80000000)