18.01.2015 Views

Technical Reference Manual - InduSoft

Technical Reference Manual - InduSoft

Technical Reference Manual - InduSoft

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Appendix: Built-in Scripting Language<br />

Examples<br />

SetViewerInFocus()<br />

SetViewerPos<br />

Sets the height, width, and position of the project viewer or thin client.<br />

Function Group Execution Windows Embedded Thin Client<br />

SetViewerPos Module Activity Synchronous Supported Not supported Supported<br />

Syntax<br />

SetViewerPos( numLeft, numTop, optNumWidth, optNumHeight )<br />

numLeft<br />

A numeric flag that specifies the left-side position of the Viewer in pixels.<br />

numTop<br />

A numeric flag that specifies the top-side position of the Viewer in pixels.<br />

optNumWidth<br />

Optional numeric tag specifying the Viewer width in pixels.<br />

optNumHeight<br />

Optional numeric tag containing the Viewer height in pixels.<br />

Returned value<br />

0 Error<br />

1 Success<br />

Examples<br />

Tag Name<br />

Expression<br />

Tag SetViewerPos( 50, 50, 640, 480 )<br />

Note: When you omit the optional parameters (numWidth and numHeight), IWS gets size of the<br />

Viewer window from the project resolution.<br />

ShutDown<br />

Shuts down all of the active project modules.<br />

Function Group Execution Windows Embedded Thin Client<br />

ShutDown Module Activity Asynchronous Supported Supported Not supported<br />

Syntax<br />

ShutDown()<br />

This function takes no parameters.<br />

Page 620<br />

<strong>InduSoft</strong> Web Studio

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!