UI component openCard/preOpenCard
Rob Cozens
rcozens at pon.net
Thu Jul 15 12:36:11 EDT 2004
>> How might these components receive these calls?
>
>The preOpenCard & openCard messages are sent to the card;
In card or higher script:
on preOpenCard
get the number of controls of the target
repeat with x = 1 to it
send "preOpenCard" to control it
end repeat
end preOpenCard
Note that each control MUST contain a preOpenCard handler or the
message will be passed up to the card...and processing should loop
until RAM is exhausted.
A better solution would be to pass the controls a different message,
eg: cardPreOpen, rather than using system messages usually targeted
to higher objects.
--
Rob Cozens
CCW, Serendipity Software Company
"And I, which was two fooles, do so grow three;
Who are a little wise, the best fooles bee."
from "The Triple Foole" by John Donne (1572-1631)
More information about the use-livecode
mailing list