Programming with Reflection

image\rwnprg32.gif SetWindowPos method

 

Syntax object.SetWindowPos Left, Top, Width, Height

 

Description

Adjusts the location, shape, and size of the terminal window. If you attempt to set the terminal window to a size larger or smaller than is feasible, SetWindowPos sets the terminal window to the largest or smallest size possible.

For example, the following statement places Reflection in the upper left corner of the screen.

Session.SetWindowPos 0,0,600,400

SetWindowPos sets the values of the following properties:

Left The location of the left margin of the terminal window (in number of pixels from the left margin of the screen).

Top The location of the top of the terminal window (in number of pixels from the top margin of the screen).

Width The width (in pixels) of the terminal window.

Height The height (in pixels) of the terminal window.

Arguments

Left Argument type: Integer
The new location for the left margin of the terminal window (in number of pixels from the left margin of the screen).

Top Argument type: Integer
The new location for the top margin of the terminal window (in number of pixels from the top margin of the screen).

Width Argument type: Integer
The new width (in pixels) for the terminal window.

Height Argument type: Integer
The new height (in pixels) for the terminal window.

Notes

· Changes you make to the Reflection window size, shape and location are recorded when the macro recorder is on.

· Optimum window size depends on the user's screen resolution.

 

image\jump.gif Keyword Index

image\popup.gif Related Topics

image\popup.gif Reflection products that use this command