Open stack from another stack--Was "PreOpenStack in the IDE"

Jim Bufalini jim at visitrieve.com
Mon Aug 31 17:54:58 CDT 2009


Hey Jim,

LOL. Instead of *beep*  enter *put "The PreOpenStack handler executed"* into the preOpenStack handler. This will appear in your message box. ;-) It's too premature for the beep.

Aloha from Hawaii,

Jim Bufalini 

> -----Original Message-----
> From: use-revolution-bounces at lists.runrev.com [mailto:use-revolution-
> bounces at lists.runrev.com] On Behalf Of James Hurley
> Sent: Monday, August 31, 2009 12:32 PM
> To: use-revolution at lists.runrev.com
> Subject: Re: Open stack from another stack--Was "PreOpenStack in the
> IDE"
> 
> > Jim,
> >
> > Hmm... The important part of what I said is not the go or open but
> > using the
> > stack "file name" as in *go stack "C:\MyStack.rev"* What version of
> > Rev are
> > you using?
> 
> Jim,
> 
> I have two stacks: Test1 and Test2
> 
> I have a button in Test1 with the handler:
> 
> on mouseUp
>     go stack "/Users/jimhurley/Revolution applications/test2.rev"
> end mouseUp
> 
> And in the stack script of Test2 I have the handler:
> 
> on preopenstack
>     beep
> end preopenstack
> 
> A click on the button in Test1 does not produce a beep.
> 
> But the handler in the button:
> 
> on mouseUp
>     go stack "/Users/jimhurley/Revolution applications/test2.rev"
>     send "preopenstack" to stack "test2"
> end mouseUp
> 
> does produce a beep--not surprisingly. But I am surprised that "go
> stack" or "open stack" do not get me a beep.
> 
> I am running RR 3.5 on a Mac.
> 
> Jim Hurley
> 
> >
> > Aloha from Hawaii,
> >
> > Jim Bufalini
> >
> > > -----Original Message-----
> > > From: use-revolution-bounces at lists.runrev.com [mailto:use-
> revolution-
> > > bounces at lists.runrev.com] On Behalf Of James Hurley
> > > Sent: Monday, August 31, 2009 12:05 PM
> > > To: use-revolution at lists.runrev.com
> > > Subject: Re: Open stack from another stack--Was "PreOpenStack in
> the
> > > IDE"
> > >
> > > Jim,
> > > It appears that neither "open stack" nor "go stack" will trigger a
> > > PreOpenStack message.
> > > I am using as a workaround an "open stack" and then sending a
> > > PreOpenStack message to the stack.
> > > Clumsy but it works.
> > >
> > > Jim Hurley
> > >
> > > > James Hurley wrote:
> > > >
> > > > > Hi Mark,
> > > > >
> > > > > Thanks. On further testing I see that you are right--generally
> > > > > speaking.
> > > > >
> > > > > My problem is when I attempt to open a stack from a Palette
> > stack
> > > > > with the statement:
> > > > >
> > > > >     open stack "mystack"
> > > > >
> > > > > the stack opens but the PreOpenStack handler is not executed.
> > > > >
> > > > > On the on the other hand, If I open it from Open in the FIle
> > menu,
> > > > the
> > > > > PreOpenStack is executed.
> > > > >
> > > > > Is there something about opening a stack from another stack
> that
> > > > does
> > > > > not trigger the PreOpenStack message?
> > > >
> > > > Try using "go stack" to the stack file name on disk. This should
> > > > always
> > > > trigger a preOpenStack.
> > > >
> > > > Aloha from Hawaii,
> > > >
> > > > Jim Bufalini
> > > _______________________________________________
> > > use-revolution mailing list
> > > use-revolution at lists.runrev.com
> > > Please visit this url to subscribe, unsubscribe and manage your
> > > subscription preferences:
> > > http://lists.runrev.com/mailman/listinfo/use-revolution
> >
> > Previous message: Open stack from another stack--Was "PreOpenStack
> > in the IDE"
> > Next message: FYI - NULLs in data to sort
> > Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
> > More information about the use-revolution mailing list탰ធ쀀
> 
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution




More information about the use-livecode mailing list