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 Left, Top, Width, and Height properties:

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.

 

 

image\jump.gif Keyword Index

image\popup.gif Related Topics

image\popup.gif Reflection products that use this command