Vizard 7 » Command Index » Vizard modules » viz » <viz:window>.setFullscreenMonitor
7.6

<viz:window>.setFullscreenMonitor

Set the monitor for fullscreen mode

<viz:window>.setFullscreenMonitor(  
monitor  
)  
monitor
One of the following monitor values:

Monitor

1, 2, ...

The fullscreen window will appear on the specified monitor.

0

The fullscreen window will stretch over all monitors.

viz.AUTO_COMPUTE

The fullscreen window will appear on the monitor the window is currently inside.



A list of monitor numbers can be specified to allow the fullscreen window to span across more than one monitor. In this case the fullscreen rectangle will be set to the bounding rectangle of the specified monitors.

Remarks

If the machine has multiple monitors, this command allows you to specify which monitor the graphics window will appear on when entering fullscreen mode.

You can use the viz.fullscreen.monitor option in your vizcore.cfg file to specify the default fullscreen monitor. The default value is 0.

Return Value

None

Example

Example 1:
# Go fullscreen on monitor 1
viz.window.setFullscreenMonitor(1)


Example 2:
# Go fullscreen on monitor 1 and 2
viz.window.setFullscreenMonitor([1,2])

See also

<viz:window>.getFullscreen
<viz:window>.getFullscreenMonitor
<viz:window>.getFullscreenRectangle
<viz:window>.setFullscreen
<viz:window>.setFullscreenRectangle
<viz:window>.getMonitorList