Panasonic HMWIN User Manual page 269

Touch
Hide thumbs Also See for HMWIN:
Table of Contents

Advertisement

number height
The Page height in pixels
function btnStd05_onMouseRelease(me) {
var middle_y = page.height / 2;
}
userValue
string userValue
It gets or sets a user-defined value for the Widget. This field can be used by JavaScript functions to store
additional data with the page.
function btnStd9_onMouseRelease(me) {
page.userValue = "Here I can store custom data";
}
Follow the list of Page Object methods:
getWidget
object getWidget( wgtName )
It returns the Widget with the given name.
Parameters
wgtName
A string containing the name of widget
Return value
An object representing the widget. If the widget does not exist, null is returned.
function btnStd1_onMouseRelease(me) {
var my_button = page.getWidget("btnStd1");
}
setTimeout
number setTimeout( functionName, delay )
It starts a timer to execute a given function after a given delay once.
Parameters
functionName
delay
Return value
It returns a number corresponding to the timerID.
var duration = 3000;
var myTimer = page.setTimeout("innerChangeWidth()", duration);
clearTimeout
void clearTimeout( timerID )
It stops and clear the timeout timer with the given timer.
Parameters
ACGM0195V1EN
HMWIN Studio User Manual
A string containing the name of function to call.
The delay in milliseconds.
269

Advertisement

Table of Contents
loading

Table of Contents