# Metadata
Platforms: desktop, server, mobile OS: mac, windows, linux, ios, android Introduced: 1.0 Security:
# Syntax
preOpenStack
# Examples
on preOpenStack -- center the stack on the main screen set the loc of this stack to the screenLoc pass preOpenStack end preOpenStack
# Description
Handle the preOpenStack message to update a card appearance before the card appears on screen.
The preOpenStack message is sent before the openStack message. Unlike openStack, preOpenStack handlers are execute before the stack window appears. Because of this, the preOpenStack handler is a good place to put code that adjusts the size, position, and appearance of objects; the changes are made before the stack appears.
The actual navigation is not triggered by the preOpenStack message, so trap the message and not allowing it to pass does not prevent the stack from opening.
# Tags
# See
- **keyword:** card - **message:** openStack, closeStack, preOpenCard - **object:** stack, card - **glossary:** object, handler, trap, message, stack window, execute - **control structure:** pass