loading another stack from splash

Mark Smith Mark_Smith at cpe.umanitoba.ca
Tue Sep 21 21:44:05 EDT 2010


Hi Shadow, thanks again. Am on the road and cannot do a lot of testing right now but basically I got this to work once by embedding one stack in the other (using stackfiles option) but could not subsequently duplicate. Am concerned that I am barking down the wrong tree as don't think that embedded stacks (aka substacks) can save to themselves when compiled. I need a solution that will allow me to have one stack call/load another that is not compiled as part of the mainstack. Will try playing with this again this weekend, but very frustrated this is not straight forward and obvious. I would imagine many people need to have compiled stacks save to themselves?

Cheers,

-- Mark
________________________________________
From: use-revolution-bounces at lists.runrev.com [use-revolution-bounces at lists.runrev.com] On Behalf Of Shadow Slash [shadow.slash at yahoo.com]
Sent: Monday, September 20, 2010 11:55 AM
To: How to use Revolution
Subject: RE: loading another stack from splash

Correction concerning your new script,
if you will use "lock screen" you don't have to include the "to true" after it. Reverting the "lock screen" should be as "unlock screen".
And also "set visible to false" needs to identify what you want to hide like "set visible of stack "mystack" to false". Alternatively, you can also just use "hide stack "mystack"" to shorten your code length.

About the path thing, I think you need to define the path of the stack like "notepad3.rev" or something. Otherwise, you can juse add your notepad3 stack as a substack to your splash stack.

:)

--- On Mon, 20/9/10, Mark Smith <Mark_Smith at cpe.umanitoba.ca> wrote:

> From: Mark Smith <Mark_Smith at cpe.umanitoba.ca>
> Subject: RE: loading another stack from splash
> To: "How to use Revolution" <use-revolution at lists.runrev.com>
> Date: Monday, 20 September, 2010, 4:25 PM
> Thanks Shadow, yes that was a typo in
> my email, not the hander. I'll cut/paste what I have
>
> on preopenstack
>    -- lock screen to true
>    -- set visible to false
>    answer the utargetstack of this stack
>    go to stack (the utargetstack of this
> stack)
> end preopenstack
>
> There are some commented sections (suggested elsewhere) I
> want to test later. Notepad3 is just another stack residing
> in the same directory as Startup (might that be the problem?
> ie. I'm not providing a path or anything just the name of
> the stack), The bracketing did not help. Thanks
>
> -- Mark
> ________________________________________
> From: use-revolution-bounces at lists.runrev.com
> [use-revolution-bounces at lists.runrev.com]
> On Behalf Of Shadow Slash [shadow.slash at yahoo.com]
> Sent: Monday, September 20, 2010 10:36 AM
> To: How to use Revolution
> Subject: Re: loading another stack from splash
>
> Hi Mark,
>
> First off, is that a typo in your handler? ->
> "preopenstackit".
> IMO, that should be "preOpenStack".
> Now for your problem, can you try this in place of your
> code instead?
> on preopenstack
>    answer the utargetstack of this stack
>    go to stack (the utargetstack of this
> stack)
> end preopenstack
>
> If that still didn't work please do tell so I can try to
> further help you.
>
> --- On Mon, 20/9/10, Mark Smith <Mark_Smith at cpe.umanitoba.ca>
> wrote:
>
> > From: Mark Smith <Mark_Smith at cpe.umanitoba.ca>
> > Subject: loading another stack from splash
> > To: "use-revolution at lists.runrev.com"
> <use-revolution at lists.runrev.com>
> > Date: Monday, 20 September, 2010, 3:28 PM
> > Hi folks,
> >
> > I've written an application (a simple notepad) that I
> > wanted to compile. RunRev documentation suggests
> creating a
> > "splash screen" that
> > calls the "notepad" so that notepad can save into
> itself.
> > So I created a stack called Startup. So far it has a
> single
> > script in the stack script that says
> >
> > on preopenstackit
> >    answer the utargetstack of this
> > stack  -- works
> >    go to stack the utargetstack of this
> > stack -- not working
> > end preopenstack
> >
> > utargetstack is defined as Notepad3. When I open the
> > startup stack it displays the name of the "target"
> stack
> > correctly
> > in a dialog (ie. Notepad3).
> >
> > The next line however does nothing. By that I mean it
> does
> > not seem to load and run
> > the Notepad3 stack. This is what I get when I say "put
> the
> > openstacks"
> >
> > Message Box
> > revMenubar
> > revTools
> > revStartCentre
> > Startup
> > revApplicationOverview
> >
> > Any suggestions?
> >
> > Thanks
> >
> > -- Mark
> > _
> > _______________________________________________
> > 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
> >
>
>
>
> _______________________________________________
> 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
> _______________________________________________
> 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
>



_______________________________________________
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