Previous - pptSetVisible Section Home - Microsoft PowerPoint Next - pptSetWinState


pptSetWinRect ( )

Resizes PowerPoint application window

Usage:

pptSetWinRect (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

h (integer) - new application height

Returns:

(integer) - The success code

Example1:

-- example demonstrates how to display PowerPoint using the same rect as the stage
xtRose = xtra("Rosetta").new( )
xtRose.pptLaunch( )
xtRose.pptSetVisible( 1 )
xtRose.pptSetWinState( 1 )
xtRose.pptSetWinRect( (the stage).rect.left, (the stage).rect.top, (the stage).rect.right, (the stage).rect.bottom )

Example2:

-- example demonstrates how to adjust only the top and left side of the PowerPoint window
xtRose = xtra("Rosetta").new( )
xtRose.pptLaunch( )
xtRose.pptSetVisible( 1 )
xtRose.pptSetWinState( 1 )
xtRose.pptSetWinRect( sprite(1).left, sprite(1).top, -1, -1 )

Notes:

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

See Also:

pptSetVisible, pptSetWinState


Previous - pptSetVisible Section Home - Microsoft PowerPoint Next - pptSetWinState