Livecode Wiki
Advertisement

A Message sent to a group right after you go to the card that contains it or to a background group right after going from a card where it was is not placed on to one where it is. If there is a message handler by the same name in the message path, then it will be executed.

Message[]

openControl

For groups with their backgroundBehavior property set to true, the openControl message is sent immediately after the openBackground message is sent to the card being opened. For non-background groups, it is sent after the openCard message.

For nested groups, the openControl message is sent to the parent group first, if it is passed or not handled by the parent group, then it passes though each child group in reverse layer order (i.e from highest to lowest).

Message handler[]

Examples:

on openControl
  startProgressAnimation
  databaseQuery
end openControl

Use the openControl Message handler to change a group's objects or perform other updates, when a card with the group on is visited.

See also: openBackground, preOpenControl, closeControl, openCard, group & backgroundBehavior

Advertisement