Page 1 of 1
Modal dialog locked in
Posted: Fri Feb 28, 2014 8:07 am
by jalz
Hey Guys,
I get the occasional problem when working with modal dialogs. My buttons just seem to close the stack down, due to errors in my script. The only thing I can do is force quit LiveCode rectify the script and then try again hoping script works. In force quitting LiveCode I'm concerned that I will eventually corrupt my file.
Does anyone know of a keyboard shortcut or a technique which will allow me gracefully close down the offending stack without me having to force quit and restart LiveCode?
Many thanks
Jalz
Re: Modal dialog locked in
Posted: Fri Feb 28, 2014 8:46 am
by Thierry
jalz wrote:Hey Guys,
I get the occasional problem when working with modal dialogs. My buttons just seem to close the stack down, due to errors in my script. The only thing I can do is force quit LiveCode rectify the script and then try again hoping script works. In force quitting LiveCode I'm concerned that I will eventually corrupt my file.
Does anyone know of a keyboard shortcut or a technique which will allow me gracefully close down the offending stack without me having to force quit and restart LiveCode?
Hi jalz,
Either I start coding a *non* modal dialog and when I'm sure of my code, change it to modal,
or I set up an extra "in development" button which only close the modal dialog, and remove it at the end. And I can't say when I'm choosing one or the other
My 2 cents,
Thierry
Re: Modal dialog locked in
Posted: Fri Feb 28, 2014 9:27 am
by bn
Hi Jalz,
what Thierry said
and have a look at this thread which was started by a certain Jalz
http://forums.runrev.com/phpBB2/viewtop ... =7&t=18784
especially near the end what Jaque said.
Also of course you can add a button during development "close this stack" as an emergency exit.
Kind regards
Bernd
Re: Modal dialog locked in
Posted: Fri Feb 28, 2014 10:00 am
by Thierry
bn wrote:Hi Jalz,
and have a look at this thread which was started by a certain Jalz
He he, seems I'm not the only one to have memory holes
Thierry
Re: Modal dialog locked in
Posted: Fri Feb 28, 2014 10:05 am
by jalz
Hi Guys,
Yes thanks, your right regarding my last thread. I think i shall create a button just solely to close stack for dev purposes and remove it once im happy with the code.
Cheers
Jalz