Error getting tags :
error 404Error getting tags :
error 404 revUpdateGeometry | revDocs | RunRev
Welcome Guest (Log in)
Product Edition
Version
revUpdateGeometry
Basics
Expander triangle
Type
Command
Syntax

revUpdateGeometry

Introduced
1.0
Environment
Desktop, Web and Server
Platform Support
MacOS,Mac OS X,Windows,Linux
Security
None required
Summary
Moves and resizes objects according to their Geometry pane settings.
Examples

revUpdateGeometry
if the width of this stack > 100 then revUpdateGeometry

Additional Comments
Expander triangle

The Revolution development environment automatically executes the revUpdateGeometry command when a resizeStack message is sent. Use the revUpdateGeometry command if your stack handles the resizeStack message without passing it.

Comments:

Normally, you do not need to use the revUpdateGeometry command at all, since Revolution automatically updates geometry when a stack is resized. Use it only if both the following conditions are true:

1. Your stack uses the Geometry pane of the property inspector to automate object positioning and sizing when the stack window is resized, and

2. Either a handler in your stack locks messages and then moves or resizes the stack window, or a resizeStack handler in your stack does not pass the resizeStack message at the end of the handler.

If both these conditions are true, execute the revUpdateGeometry command in the handler, after the resizing is performed, to perform Geometry tasks.

Important! The revUpdateGeometrycommand is part of the Geometry library. To ensure that the command works in a standalone application, you must include this custom library when you create your standalone. In the Inclusions section on the General screen of the Standalone Application Settings window, make sure that "Geometry Library" is selected in the list of script libraries.

Note: When included in a standalone application, the Geometry 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 revUpdateGeometrycommand 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 revUpdateGeometrycommand can be used in any handler.

User Comments
Expander triangle