Previous - xlsSetVisible Section Home - Microsoft Excel Next - xlsColumnWidth


xlsSetWinRect ( )

Resizes the Excel application window

Usage:

xlsSetWinRect (object me, integer x, integer y, integer w, integer h )

Parameters:

x (integer) - new left position

y (integer) - new top position

w (integer) - new application width in pixels

h (integer) - new application height in pixels

Returns:

(integer) - The success code

Example:

xtRose = xtra("Rosetta").new( )
xtRose.xlsLaunch( )
xtRose.xlsSetVisible ( 1 )
xtRose.xlsSetWinRect( 100, 100, -1, 300 )

Notes:

Passing -1 as the parameter will leave the existing value untouched. In the example, the width of the application window is left unchanged, while the height of the application window is changed to 300 pixels


Previous - xlsSetVisible Section Home - Microsoft Excel Next - xlsColumnWidth