OutputLayoutManager.SetWindowPosition(Variable, Variable, Variable, Variable, Variable) Method

Top 

Description

Sets the position of the top-left corner of a window. For constrained windows, the origin is located at the top-left corner of the Workspace. For unconstrained windows, the origin is located at the top-leftmost point over all screens. Change OutputLayout.ShowNewWindowBehavior to show windows without any arrangement to prevent tiling when new windows are added to the Output Workspace. Call OutputLayout.ApplyUpdates() to perform the action.

 

Timing Precision Mode

This page describes functionality in nanosecond timing precision mode.

Click here to see the documentation for this object in millisecond timing precision mode.

 

Method Signature

OutputLayoutManager.SetWindowPosition(

Variable windowId,


Variable mode,


Variable X,


Variable mode,


Variable Y)

 

 

Arguments

windowId


Description:

Window ID.

Valid Range:

windowId ≥ 1

 

 

mode


Description:

The window positioning mode.

Valid Values:

Value

Label

0

Absolute positioning in pixels.

1

Proportional positioning as a fraction of the Workspace or occupied screen width, from 0 to 1.

 

 

 

X


Description:

Window X position.

 

 

mode


Description:

The window positioning mode.

Valid Values:

Value

Label

0

Absolute positioning in pixels.

1

Proportional positioning as a fraction of the Workspace or occupied screen height, from 0 to 1.

 

 

 

Y


Description:

Window Y position.

 

 

 

Return Value

Type:

number

 

 

The return value is not used.

 

Syntax

myVariable1 = OutputLayout.SetWindowPosition(myVariable2, myVariable3, myVariable4, myVariable5, myVariable6);

 

 

See also

OutputLayoutManager Object

Output Layout Control Guide