On Wed, Dec 8, 2010 at 1:33 PM, william humphrey <bi...@bluewatermaritime.com
> wrote:
> How do you get an answer dialogue to halt the quit process? If you have a
> "close stack" handler and it has a "do you really want to quit?" dialogue
> and you quit the livecode application you see that answer message flash for
> a second but it doesn't halt the quit process.
--
http://www.bluewatermaritime.com
Bob
--
http://www.bluewatermaritime.com
*
*
*on* shutdownRequest
answer "are you sure you want to quit"
*end* shutdownRequest
Hugh Senior
FLCo
How do you get an answer dialogue to halt the quit process? If you have a
"close stack" handler and it has a "do you really want to quit?" dialogue
and you quit the livecode application you see that answer message flash for
a second but it doesn't halt the quit process.
Bob
Bob
I hope that clears things up for everyone.
Bob
On Dec 8, 2010, at 11:25 AM, FlexibleLearning wrote:
As I said, 'quit' is non-negotiable. Trap a closeStackRequest in the main
stack's card script and offer the option to abort...
--| Main stack, card script
on closeStackRequest
checkQuit
end closeStackRequest
--| Main stack, stack script
on checkQuit
answer "Are you sure you want to quit?" with "Yes" or "No"
if it="Yes" then quit
end checkQuit
You can use the same handler in your File menu...
on menuPick which
if which="Quit" then checkQuit
end menuPick
and in your shortcuts handler thus...
on commandKeyDown pKey
if pKey="Q" then checkQuit
end commandKeyDown
Hugh Senior
FLCo
Hi Hugh. CloseStackRequest does not prevent quitting in the IDE. It appears
nothing does. I suspect however that it would work in a standalone. I will
test that shortly.
Bob
Bob
Have you looked at trapping the shutdownRequest message?
--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
I blame Gremlins!
Bob
It can't work in the IDE the way you want, because the IDE traps the
message in order to ask you if you want to save your own stacks. :) If
you want to test it in the IDE, select "Suspend Development Tools" from
the Development menu. That will remove the IDE from the message path and
it should work in your stack.
--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
_______________________________________________
I seem to be too dumb for this...
Can anyone point me to the settings I have to make to ensure my project launches on the device I want in the simulator? I had it launch in the iPad one only. Now it only launches in the old iPhone one. Going nuts over here.
all the best,
Malte
On Wed, Dec 8, 2010 at 11:29 PM, J. Landman Gay <jac...@hyperactivesw.com>wrote:
> On 12/8/10 8:07 PM, william humphrey wrote:
>
>> I couldn't get it to work in the IDE but I'll try again now. Seems to me
>> it
>> would be nice if things like this worked consistently in IDE and
>> standalone
>> even if LiveCode programmers had to introduce something to accomplish it.
>>
>
> It can't work in the IDE the way you want, because the IDE traps the
> message in order to ask you if you want to save your own stacks. :) If you
> want to test it in the IDE, select "Suspend Development Tools" from the
> Development menu. That will remove the IDE from the message path and it
> should work in your stack.
>
>
>
--
http://www.bluewatermaritime.com
...and/or virtual "noobs" like myself.
Simply good folks. :-)
Best regards,
David C.
Bob
I marvel too. We all have our areas of expertise, and I'm as noob as
anyone in some of them. Don't ask me to debug your database. :)
--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
_______________________________________________