# Metadata
Platforms: desktop, server, mobile OS: mac, windows, linux, ios, android Introduced: 1.0 Security:
# Syntax
preOpenCard
# Examples
on preOpenCard -- highlight the "go to this card" button in a set set the hilitedButton of group "Cards" to the number of this card pass preOpenCard end preOpenCard
# Description
Handle the preOpenCard message to update a card appearance before the card appears on screen.
The preOpenCard message is sent before the openCard message. Unlike openCard, preOpenCard handlers are execute before the card appears. Because of this, the preOpenCard handler is a good place to put code that adjusts the size, position, and appearance of objects; the changes are made before the card appears.
The actual navigation is not triggered by the preOpenCard message, so trap the message and not allowing it to pass does not prevent the card from opening.
# Tags
# See