Vizard 7 » Command Index » Vizard modules » viz » <viz:window>.setPosition
7.5

<viz:window>.setPosition

Sets the window position relative to the top left corner.

<viz:window>.setPosition(  
[x,y]  
)  
[x,y]
The offset in pixels from the upper left corner of the monitor.

Remarks

This will set the x and y position of the main graphics window. The position is in monitor coordinates, where (0,0) is the upper left corner of the monitor. The default is (0,0).

Return Value

None

Example

viz.window.setPosition([400,200])

See also

<viz:window>.getPosition
<viz:window>.getSize
<viz:window>.setSize