SetViewerPos

Sets the height, width, and position of the project viewer or thin client.

Function Group Execution Windows Embedded Thin Client
SetViewerPos Module Activity Synchronous Supported Not supported Supported

Syntax

SetViewerPos( numLeft, numTop, optNumWidth, optNumHeight )
numLeft
A numeric flag that specifies the left-side position of the Viewer in pixels.
numTop
A numeric flag that specifies the top-side position of the Viewer in pixels.
optNumWidth
Optional numeric tag specifying the Viewer width in pixels.
optNumHeight
Optional numeric tag containing the Viewer height in pixels.

Returned value

0 Error
1 Success

Examples

Tag Name Expression
Tag SetViewerPos( 50, 50, 640, 480 )
Note: When you omit the optional parameters (numWidth and numHeight), IWS gets size of the Viewer window from the project resolution.