Splash stacks - closing the splash

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
Simon Knight
Posts: 919
Joined: Wed Nov 04, 2009 11:41 am

Splash stacks - closing the splash

Post by Simon Knight » Tue Oct 30, 2012 5:11 pm

Hi,

I am attempting my first standalone that saves data. I have elected to use the splash stack method and have entered the following code into the splash stack:

Code: Select all

On OpenStack
   Send "DelayClose" to me in 15 seconds
end OpenStack

On DelayClose
   go to stack "WeaponsControlMain"
   close me
end DelayClose
While this works it suffers from the major problem that I have to comment out the first line within 15 seconds of it opening otherwise it closes on me. Does anyone have a more elegant way of opening then closing a stack that still allows editing of the stack in the IDE?
best wishes
Skids

bn
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 4172
Joined: Sun Jan 07, 2007 9:12 pm

Re: Splash stacks - closing the splash

Post by bn » Tue Oct 30, 2012 5:54 pm

Hi Simon,

try the environment:

Code: Select all

on openStack
   if the environment = "standalone application" then send "DelayClose" to me in 15 seconds
end openStack
Kind regards
Bernd

Simon Knight
Posts: 919
Joined: Wed Nov 04, 2009 11:41 am

Re: Splash stacks - closing the splash

Post by Simon Knight » Wed Oct 31, 2012 3:14 pm

Hi Bernd,

Excellent! Many thanks - yet again :-)

best wishes

Simon
best wishes
Skids

Post Reply