Error getting tags :
error 404Error getting tags :
error 404 revCacheGeometry | revDocs | RunRev
Welcome Guest (Log in)
Product Edition
Expander triangle


Desktop, Web and Server
Platform Support
MacOS,Mac OS X,Windows,Linux
None required
Updates Geometry settings.

if the rect of me is not savedRect then revCacheGeometry

Additional Comments
Expander triangle

Use the revCacheGeometry command to update the Geometry pane's internal settings, after changing the size or position of controls that you have used the Geometry pane to specify behavior for.


The revCacheGeometry command rebuilds the Geometry pane's internal settings for the controls on the current card, storing the baseline position that the automatic positioning and scaling uses as a starting point.

The Revolution development environment automatically executes the revCacheGeometry command when a resizeControl or moveControl message is sent. This means that when you move or resize a control in the development environment, its stored Geometry baseline is normally updated automatically.

Normally, you do not need to use the revCacheGeometry command at all, since Revolution automatically updates the geometry settings when a control is moved or resized. However, if you move or resize controls manually or in a handler, and the resizeControl or moveControl message is not sent, you may need to use the revCacheGeometry command to update the baseline positions.

To update the settings, use the following statement in a handler or the message box, before changing cards or resizing the window:


Important! The revCacheGeometrycommand 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 revCacheGeometrycommand 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 revCacheGeometrycommand can be used in any handler.

User Comments
Expander triangle