Widget events
<< Click to Display Table of Contents >> Navigation: Callbacks > Widget events |
Usage (requires global variable associated with a widget):
On WidgetValueChanged (newValue : double) from SomeWidget
// newValue represents a value between 0.0 and 1.0
End
On WidgetValueChanged ([w : Widget, index : integer,] newValue : double) from SomeWidget [,SomeWidget]*
// In this version, you can use a single callback to respond to
// changes from multiple widgets
// The first parameter, w, is the widget that triggered the callback
// The second parameter, index, (0-based)refers to one of the widgets in the 'from' clause.
// So, if were triggered by EvenOneMoreWidget, the value of index would be 2.
// newValue represents a value between 0.0 and 1.0
End