Error getting tags :
error 404Error getting tags :
error 404 preOpenCard | revDocs | RunRev
Welcome Guest (Log in)
Product Edition
Version
preOpenCard
Basics
Expander triangle
Type
Message
Syntax
preOpenCard
Introduced
1.0
Environment
Desktop, Web and Server
Platform Support
MacOS,Mac OS X,Windows,Linux
Security
None required
Summary
Sent to a card when you go to the card.
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

Additional Comments
Expander triangle

Handle the preOpenCard message to update a card's appearance before the card appears on screen.

Comments:

The preOpenCard message is sent before the openCard message. Unlike openCard, preOpenCard handlers are executed 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 trapping the message and not allowing it to pass does not prevent the card from opening.

User Comments
Expander triangle