EasyManua.ls Logo

Panasonic HMWIN - Page 344

Panasonic HMWIN
440 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Parameter Description
me Object triggering the event
eventInfo An object with the fields listed below (you can refer fields using “.” - dot notation)
oldValue = Widget value before the change
newValue = Value which will be updated to the widget
attrName = Attribute on which the event is generated
index = Integer attribute index if any, default = 0
mode = W when the user is writing to the widget. R in all others status.
The event is triggered before the value is passed to the widget, this means the JavaScript code can modify the value before
it is actually passed to the widget.
The code can terminate with a return true or return false. After terminating the code with return false, control is returned to
the calling widget that may launch other actions.
After terminating the code with true, the control is not returned to the widget and this makes sure that no additional actions
are executed following the calling event.
function buttonStd1_onDataUpdate(me, eventInfo) {
if ( eventInfo.oldValue < 0) {
//do something…
}
return false;
}
OnPan
boolean onGesturePan(me, eventInfo)
This event is only available for gesture area buttons; it occurs when one point inside the area has pressed and a movement
has been detected.
Parameter Description
me Object triggering the event.
eventInfo id = Gesture id; it is used to identify different gestures.
running = True except for last event delivered to notify gesture completion.
dx = Total X axis movement in screen pixel units from initial touch position .
dy = Total Y axis movement in screen pixel units from initial touch position.
function gstArea_onGesturePan(me, eventInfo)
{
wTYPE.setProperty("value","PAN");
342
HMWIN Studio |User Manual|v206 (2017-06-30) |EN|© 2014-2017 Panasonic Electric Works Europe AG
Widget events

Table of Contents

Related product manuals