12 event handlers – Rice Lake iRite IDE User Manual
Page 74

70
920i
Programming Reference
SetNumericValue
Sets the value of numeric widget W to V.
Method Signature:
function SetNumericValue (W : Integer; V : Real) : SysCode;
Parameters:
[in]
W
Numeric widget number
[in]
V
Numeric widget value
SysCode values returned:
SysInvalidWidget
The numeric widget specified by
W
does not exist.
SysOK
The function completed successfully.
SetSymbolState
Sets the state of symbol widget W to S. The widget state determines the variant of the widget symbol displayed.
All widgets have at least two states (values 1 and 2); some have three (3). See Section 9.0 of the
920i
Installation
Manual for descriptions of the symbol widget states.
Method Signature:
function SetSymbolState (W : Integer; S : Integer) : SysCode;
Parameters:
[in]
W
Symbol widget number
[in]
S
Symbol widget state
SysCode values returned:
SysInvalidWidget
The symbol widget specified by
W
does not exist.
SysOK
The function completed successfully.
SetWidgetVisibility
Sets the visibility state of widget W to V.
Method Signature:
function SetWidgetVisibility (W : Integer; V : OnOffType) : SysCode;
Parameters:
[in]
W
Widget number
[in]
V
Widget visibility
SysCode values returned:
SysInvalidWidget
The widget specified by
W
does not exist.
SysOK
The function completed successfully.
5.12 Event Handlers
BusCommandHandler
When enabled, this event handler is activated when new data arrives on a field bus option card. SetImage() must
be called before BusCommandHandler() will be activated again. A new activation of the handler can occur when
new data is present on the bus.
Method Signature:
BusCommandHandler()
xKeyReleased
This class of event handlers is activated when a key is released. The "x" is replaced with the name of the key. Key
names are the same as for the xKeyPressed handlers. Note that the xKeyReleased handlers are subject to the
same timing considerations as all other user handlers. The events are queued in the order they are detected. Any
handler that involves lengthy operations may delay the start of other handlers.
Method Signature:
handler xKeyReleased;