RE: loading another stack from splash

2010-10-02 Thread Mark Smith

Wow, very very cool. Thanks you for taking
the time to pass this along. Being able to keep the stacks inside the OSX 
application bundle will/would be fabulous. 

-- Mark

(PS Its going in my RunRev er Livecode Gold folder!)

From: Sivakatirswami [via Runtime Revolution] 
[ml-node+2768466-1431577482-120...@n4.nabble.com]
Sent: Thursday, September 30, 2010 5:23 PM
To: Mark Smith
Subject: Re: loading another stack from splash

  On 9/28/10 5:11 PM, Mark Smith wrote:
 Also, it would be real nice not to have to hard code the path in case I
 want to change its location. Having to manage two stacks instead of one does
 seems like an added burden.

 Stumped. Any help appreciated

 -- Mark
We meaning many of us here... do this all the time.
I love keeping stacks inside the OSX application bundle,
  you can develop them from inside there and ship as as single binary..

There are two common approaches These scripts may help

on loadFromDisk
 -- Setting the default folder.
 set itemdel to /
 set the defaultfolder to item 1 to -2 of the effective filename of
this stack

 -- Check for application
 if there is not a file MyNoteBook.rev then
 if checkNet() then
 checkNetworkAndDownload #If you don't have it locally then
get it from the web server
 exit loadFromDisk
 else
 answer error Please connect to the internet to install
this application
 exit loadFromDisk
 end if
 end if

 go stack url binfile:MyNoteBook.rev
 hide  stack MySplashEngine.rev
end loadFromDisk

-

on preopenstack
   go stack url (getPath(MyNoteBook.rev)
end preopenstack

function getPath tStack
 set the itemdel to /
 put the effective filename of this stack into tPath
 put tStack into item -1 of tPath
 return tPath
end getPath

By separating the function you have the interesting option of offering
the user the option to open any number stacks you might bundle into the
same folder:

On the splash screen you can have a pull down menu like this

on mousedown
set the defaultfolder to item 1 to -2 of the effective filename of
this stack
put the files into tFiles
filter tFiles with (*.livecode)
put tFiles into me
end mousedown

on menuPick pStack
 go stack url (getPath(pStack))
 hide this stack # hide the splash screen now...
end menupick

Now you can put what ever stacks you like into that folder.

Don't forget to include quit handlers in all the stacks so that you
don't leave a hung process Hidden splash screen still running.

HTH

aloha





Mark assuming that you will always put the data stacks in the same
folder as the splash-engine stack



___
use-revolution mailing list
[hidden email]/user/SendEmail.jtp?type=nodenode=2768466i=0
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution



View message @ 
http://runtime-revolution.278305.n4.nabble.com/loading-another-stack-from-splash-tp2547155p2768466.html
To unsubscribe from loading another stack from splash, click 
herehttp://runtime-revolution.278305.n4.nabble.com/template/TplServlet.jtp?tpl=unsubscribe_by_codenode=2547155code=TWFya19TbWl0aEBjcGUudW1hbml0b2JhLmNhfDI1NDcxNTV8MTc4NDM5NjU4NQ==.


-- 
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/loading-another-stack-from-splash-tp2547155p2952707.html
Sent from the Revolution - User mailing list archive at Nabble.com.
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: loading another stack from splash

2010-09-30 Thread Sivakatirswami

 On 9/28/10 5:11 PM, Mark Smith wrote:

Also, it would be real nice not to have to hard code the path in case I
want to change its location. Having to manage two stacks instead of one does
seems like an added burden.

Stumped. Any help appreciated

-- Mark

We meaning many of us here... do this all the time.
I love keeping stacks inside the OSX application bundle,
 you can develop them from inside there and ship as as single binary..

There are two common approaches These scripts may help

on loadFromDisk
-- Setting the default folder.
set itemdel to /
set the defaultfolder to item 1 to -2 of the effective filename of 
this stack


-- Check for application
if there is not a file MyNoteBook.rev then
if checkNet() then
checkNetworkAndDownload #If you don't have it locally then 
get it from the web server

exit loadFromDisk
else
answer error Please connect to the internet to install 
this application

exit loadFromDisk
end if
end if

go stack url binfile:MyNoteBook.rev
hide  stack MySplashEngine.rev
end loadFromDisk

-

on preopenstack
  go stack url (getPath(MyNoteBook.rev)
end preopenstack

function getPath tStack
set the itemdel to /
put the effective filename of this stack into tPath
put tStack into item -1 of tPath
return tPath
end getPath

By separating the function you have the interesting option of offering 
the user the option to open any number stacks you might bundle into the 
same folder:


On the splash screen you can have a pull down menu like this

on mousedown
   set the defaultfolder to item 1 to -2 of the effective filename of 
this stack

   put the files into tFiles
   filter tFiles with (*.livecode)
   put tFiles into me
end mousedown

on menuPick pStack
go stack url (getPath(pStack))
hide this stack # hide the splash screen now...
end menupick

Now you can put what ever stacks you like into that folder.

Don't forget to include quit handlers in all the stacks so that you 
don't leave a hung process Hidden splash screen still running.


HTH

aloha





Mark assuming that you will always put the data stacks in the same 
folder as the splash-engine stack




___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


RE: loading another stack from splash

2010-09-28 Thread Mark Smith

Hi Splash, any further thoughts on your last questions and my post. I'm sort
of still trying to figure this compile thing out. Since I want to save the
notes in the notepad stack does that mean it cannot absolutely ever be
compiled? I am beginning to think that is my error in thinking. I was
thinking I could compile my simple Notepad application because it works fine
in the run/edit environment but apparently that does not mean it can
translate to a compiled environment.

I created a simple splash program that says:


on startup
   --   hide this stack
   --   close this stack
   --   go to stack the utargetstack of this stack
   answer Notepad3-s
   go to stack /Users/Mark/runrev/stacks/Notepad/Notepad3
end startup


on preopenstack
   -- lock screen to true
   -- set visible to false
   -- hide this stack
   answer Notepad3-p
   go to stack /Users/Mark/runrev/stacks/Notepad/Notepad3
end preopenstack


In the interpretive mode I know it is using preopenstack. But not even that
is working. Any attempt to get this program to load and run the Notepad
stack ends up doing nothing? I use Meanwhile when I manually load and run
the notepad program it works just marvellous. 

This does seem to me like such a simple problem (a) I have a perfectly
functional stack (b) I would like to run it without requiring the editing
environment (or runtime environment). Compiling it as a standalone seems the
way to go. I have done that but it will not save new notes (into itself).
This is well documented. Solution is to write a splash program that calls
Notepad. Not working. 

Also, it would be real nice not to have to hard code the path in case I
want to change its location. Having to manage two stacks instead of one does
seems like an added burden.

Stumped. Any help appreciated

-- Mark
-- 
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/loading-another-stack-from-splash-tp2547155p2718266.html
Sent from the Revolution - User mailing list archive at Nabble.com.
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: loading another stack from splash

2010-09-28 Thread Geoff Canyon Rev
You need to specify the filename of the stack, not the stack name. This is
simple, but works:

*on* preopenstack

   *set* the loc of this stack to the screenloc

*end* preopenstack



*on* openStack

   *send* gothere to me in 2 seconds

*end* openStack


*on* mouseUp

   gothere

*end* mouseUp


*on* gothere

   *if* the shiftkey is down *then* *exit* gothere -- so I can edit the
opener stack

   *go* stack url http://www.myserver.com/~geoff.canyon/stacks/lola.rev; in
the window of this stack

*end* gothere


On Tue, Sep 28, 2010 at 10:11 PM, Mark Smith mark_sm...@cpe.umanitoba.cawrote:


 Hi Splash, any further thoughts on your last questions and my post. I'm
 sort
 of still trying to figure this compile thing out. Since I want to save the
 notes in the notepad stack does that mean it cannot absolutely ever be
 compiled? I am beginning to think that is my error in thinking. I was
 thinking I could compile my simple Notepad application because it works
 fine
 in the run/edit environment but apparently that does not mean it can
 translate to a compiled environment.

 I created a simple splash program that says:


 on startup
   --   hide this stack
   --   close this stack
--   go to stack the utargetstack of this stack
answer Notepad3-s
   go to stack /Users/Mark/runrev/stacks/Notepad/Notepad3
 end startup


 on preopenstack
   -- lock screen to true
   -- set visible to false
-- hide this stack
   answer Notepad3-p
   go to stack /Users/Mark/runrev/stacks/Notepad/Notepad3
 end preopenstack


 In the interpretive mode I know it is using preopenstack. But not even that
 is working. Any attempt to get this program to load and run the Notepad
 stack ends up doing nothing? I use Meanwhile when I manually load and run
 the notepad program it works just marvellous.

 This does seem to me like such a simple problem (a) I have a perfectly
 functional stack (b) I would like to run it without requiring the editing
 environment (or runtime environment). Compiling it as a standalone seems
 the
 way to go. I have done that but it will not save new notes (into itself).
 This is well documented. Solution is to write a splash program that calls
 Notepad. Not working.

 Also, it would be real nice not to have to hard code the path in case I
 want to change its location. Having to manage two stacks instead of one
 does
 seems like an added burden.

 Stumped. Any help appreciated

 -- Mark
 --
 View this message in context:
 http://runtime-revolution.278305.n4.nabble.com/loading-another-stack-from-splash-tp2547155p2718266.html
 Sent from the Revolution - User mailing list archive at Nabble.com.
 ___
 use-revolution mailing list
 use-revolution@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@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


RE: loading another stack from splash

2010-09-24 Thread Mark Smith


Hmm are you trying to create a notepad-like application that, when closed,
saves it's contents and reloads them back when it's been relaunched?

Yes, exactly. Each card is a note. There are buttons to navigate forwards,
backwards through the cards/notes, add and delete cards etc. Pretty simple
really. My extended idea of hello world. 

-- 
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/loading-another-stack-from-splash-tp2547155p2669171.html
Sent from the Revolution - User mailing list archive at Nabble.com.
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


RE: loading another stack from splash

2010-09-21 Thread Mark Smith
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-boun...@lists.runrev.com 
[use-revolution-boun...@lists.runrev.com] On Behalf Of Shadow Slash 
[shadow.sl...@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_sm...@cpe.umanitoba.ca wrote:

 From: Mark Smith mark_sm...@cpe.umanitoba.ca
 Subject: RE: loading another stack from splash
 To: How to use Revolution use-revolution@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-boun...@lists.runrev.com
 [use-revolution-boun...@lists.runrev.com]
 On Behalf Of Shadow Slash [shadow.sl...@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_sm...@cpe.umanitoba.ca
 wrote:

  From: Mark Smith mark_sm...@cpe.umanitoba.ca
  Subject: loading another stack from splash
  To: use-revolution@lists.runrev.com
 use-revolution@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@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@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@lists.runrev.com
 Please visit this url to subscribe, unsubscribe

RE: loading another stack from splash

2010-09-21 Thread Shadow Slash
Hmm are you trying to create a notepad-like application that, when closed, 
saves it's contents and reloads them back when it's been relaunched?


--- On Wed, 22/9/10, Mark Smith mark_sm...@cpe.umanitoba.ca wrote:

 From: Mark Smith mark_sm...@cpe.umanitoba.ca
 Subject: RE: loading another stack from splash
 To: How to use Revolution use-revolution@lists.runrev.com
 Date: Wednesday, 22 September, 2010, 1:44 AM
 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-boun...@lists.runrev.com
 [use-revolution-boun...@lists.runrev.com]
 On Behalf Of Shadow Slash [shadow.sl...@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_sm...@cpe.umanitoba.ca
 wrote:
 
  From: Mark Smith mark_sm...@cpe.umanitoba.ca
  Subject: RE: loading another stack from splash
  To: How to use Revolution use-revolution@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-boun...@lists.runrev.com
  [use-revolution-boun...@lists.runrev.com]
  On Behalf Of Shadow Slash [shadow.sl...@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_sm...@cpe.umanitoba.ca
  wrote:
 
   From: Mark Smith mark_sm...@cpe.umanitoba.ca
   Subject: loading another stack from splash
   To: use-revolution@lists.runrev.com
  use-revolution@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@lists.runrev.com
   Please visit

Re: loading another stack from splash

2010-09-20 Thread Shadow Slash
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_sm...@cpe.umanitoba.ca wrote:

 From: Mark Smith mark_sm...@cpe.umanitoba.ca
 Subject: loading another stack from splash
 To: use-revolution@lists.runrev.com use-revolution@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@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@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


RE: loading another stack from splash

2010-09-20 Thread Mark Smith
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-boun...@lists.runrev.com 
[use-revolution-boun...@lists.runrev.com] On Behalf Of Shadow Slash 
[shadow.sl...@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_sm...@cpe.umanitoba.ca wrote:

 From: Mark Smith mark_sm...@cpe.umanitoba.ca
 Subject: loading another stack from splash
 To: use-revolution@lists.runrev.com use-revolution@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@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@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@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


RE: loading another stack from splash

2010-09-20 Thread Shadow Slash
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_sm...@cpe.umanitoba.ca wrote:

 From: Mark Smith mark_sm...@cpe.umanitoba.ca
 Subject: RE: loading another stack from splash
 To: How to use Revolution use-revolution@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-boun...@lists.runrev.com
 [use-revolution-boun...@lists.runrev.com]
 On Behalf Of Shadow Slash [shadow.sl...@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_sm...@cpe.umanitoba.ca
 wrote:
 
  From: Mark Smith mark_sm...@cpe.umanitoba.ca
  Subject: loading another stack from splash
  To: use-revolution@lists.runrev.com
 use-revolution@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@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@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@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@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution