Old bug still in Rev 2.8 OSX Chapter 4
J. Landman Gay
jacque at hyperactivesw.com
Wed Feb 21 14:19:08 EST 2007
LunchnMeets at aol.com wrote:
> Hi again everyone,
>
> Thanks for your input, but my problem is still there. If I double click a
> stack in the finder to open it with Revolution not open already, the stack will
> not see any of the following handlers: on openStack, on openCard, on startup,
> on preOpenStack or on preOpenCard. I guess the problem is that I never plan to
> leave the IDE and I never plan to use my creations on anything besides
> Macintoshes.
>
> On rev versions prior to 2.7.4 this wasn’t a problem by the way. Something to
> think about.
I just made a test stack too, and all these messages (except the
"startup" message) are received just fine in version 2.8. The lack of a
startup message isn't a bug, so I excluded that from my test.
To duplicate my test, make a new stack with a single field. In the stack
script, put everything between these "start script" and "end script" lines:
== start script ==
on openStack
put "openstack received" & cr after fld 1
end openStack
on openCard
put "openCard received" & cr after fld 1
end openCard
on preOpenStack
put "preOpenStack received" & cr after fld 1
end preOpenStack
on preOpenCard
put "preOpenCard received" & cr after fld 1
end preOpenCard
== end script ==
Save the stack, quit Rev. Then drop the stack onto Revolution's icon.
The field shows all the messages were sent.
Where are you placing your message handlers? They will need to be either
on the first card or the in the stack script.
--
Jacqueline Landman Gay | jacque at hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
More information about the use-livecode
mailing list