Error getting tags :
error 404Error getting tags :
error 404 revChangeWindowSize | revDocs | RunRev
Welcome Guest (Log in)
Product Edition
Expander triangle
revChangeWindowSize newWidth,newHeight[,anim[,cardNumber[,totalTime]]]
Desktop, Web and Server
Platform Support
MacOS,Mac OS X,Windows,Linux
None required
Changes the height and width of a stack window.

revChangeWindowSize 100,120
revChangeWindowSize the width of stack "Template",200,"slide"
revChangeWindowSize myWidth,myHeight,"snap",1 -- displays card 1
revChangeWindowSize 200,250,"slide",,500 -- slides over 1/2 second

Additional Comments
Expander triangle

Use the revChangeWindowSize command to change the size of a stack while leaving its top left corner in place, with optional animation effects.


The newWidth is a positive integer.

The newHeight is a positive integer.

The anim is either "snap" or "slide". If the anim is "slide", the height and width are changed during the length of time specified in totalTime, with the window edges sliding gradually instead of snapping to their new position. If the anim is "snap", or if no anim is specified, the height and width are changed immediately.

The cardNumber is the number of a card in the stack. The stack displays the card with this number during the transition, and returns to the original card at the end. If the anim is not "slide", the cardNumber has no effect.

The totalTime is the number of milliseconds to take for the slide effect. If the anim is not "slide", the totalTime has no effect and the change takes place immediately. By default, the totalTime is 250 (1/4 second).


The revChangeWindowSize command resizes a stack window to the newWidth and newHeight.

There are two differences between using the revChangeWindowSize command and simply changing the stack's height and width properties:

* The revChangeWindowSize command shrinks or grows the window from its top left corner: the window's top and left edges stay in place, while the bottom and right edges move. Setting the height and width properties leaves the center of the window in place while all four edges move inward or outward.

* The revChangeWindowSize command lets you change the window size by optionally sliding the edges over a specified time period, and displaying a card during the transition.

Note: In a standalone application the Common library is implemented as a hidden group and made available when the group receives its first openBackground message. During the first part of the application's startup process, before this message is sent, the revChangeWindowSizecommand is not yet available. This may affect attempts to use this command in startup, preOpenStack, openStack, or preOpenCardhandlers in the main stack. Once the application has finished starting up, the library is available and the revChangeWindowSizecommand can be used in any handler.

User Comments
Expander triangle