OnMainWindowAreaChanged Event
Fires when the size of the display area of the main SiteKiosk window has changed.
Syntax
SiteKiosk.SiteKioskUI.OnMainWindowAreaChanged = handler
|
Parameters
leftVal |
Long value that contains the space in pixels from the left. |
topVal |
Long value that contains the space in pixels from the top. |
rightVal |
Long value that contains the space in pixels from the right. |
bottomVal |
Long value that contains the space in pixels from the bottom. |
Remarks
The event is only useful if the main window of SiteKiosk shares its space with other content, e.g. Digital Signage.
The object that caused the event can be referenced in the event function using "this".
Examples
The following example shows an alert window when a window is minimized or maxmized.
<SCRIPT TYPE="text/javascript">
window.external.InitScriptInterface();
SiteKiosk.SiteKioskUI.OnMainWindowAreaChanged =
OnMainWindowAreaChanged;
function OnMainWindowAreaChanged(leftVal, topVal,
rightVal, bottomVal)
{
alert("new space in pixels from the right: " + rightVal);
}
</SCRIPT>
|
Applies to
SiteKiosk v8.9 (and later versions).
Back to top