Re: Message Sent when Closing Stack

2021-06-10 Thread Bruce Merritt via use-livecode
When the user force-quits you app, it when power fails you’re SOL

Sent from my iPhone

> On Jun 10, 2021, at 5:35 PM, Bob Sneidar via use-livecode 
>  wrote:
> 
> Yes it DOES work, using closeStackRequest. Not sure what I was seeing 
> before, but closeStackRequest DID trigger. 
> 
> That is great in the Development environment, but it does not work in a 
> standalone. I think what we determined in prior posts is to disable the red 
> close dot/square and have some other means for quitting the app. 
> 
> Bob S
> 
> 
>> On Jun 10, 2021, at 14:54 , J. Landman Gay via use-livecode 
>>  wrote:
>> 
>>> On 6/10/21 11:59 AM, Bob Sneidar via use-livecode wrote:
>>> Hi all.
>>> We have gone around about this before, but I still cannot get this to work. 
>>> I need to know if there is a message sent when a user clicks the close 
>>> button in a window (on a Mac it's a little red dot in the upper left, on 
>>> Windows a red square with an X).
>>> I tried before closeStack, closeStackRequest etc, and these are not getting 
>>> triggered when I close the stack this way.
>> 
>> You want closeStackRequest for that. Note that if you don't pass the message 
>> the stack won't close.
>> 
>> Do you mean if you set a breakpoint it won't trigger at all?
>> 
>> -- 
>> Jacqueline Landman Gay | jac...@hyperactivesw.com
>> HyperActive Software   | http://www.hyperactivesw.com
> 
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


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


Re: Message Sent when Closing Stack

2021-06-10 Thread Bob Sneidar via use-livecode
Yes it DOES work, using closeStackRequest. Not sure what I was seeing before, 
but closeStackRequest DID trigger. 

That is great in the Development environment, but it does not work in a 
standalone. I think what we determined in prior posts is to disable the red 
close dot/square and have some other means for quitting the app. 

Bob S


> On Jun 10, 2021, at 14:54 , J. Landman Gay via use-livecode 
>  wrote:
> 
> On 6/10/21 11:59 AM, Bob Sneidar via use-livecode wrote:
>> Hi all.
>> We have gone around about this before, but I still cannot get this to work. 
>> I need to know if there is a message sent when a user clicks the close 
>> button in a window (on a Mac it's a little red dot in the upper left, on 
>> Windows a red square with an X).
>> I tried before closeStack, closeStackRequest etc, and these are not getting 
>> triggered when I close the stack this way.
> 
> You want closeStackRequest for that. Note that if you don't pass the message 
> the stack won't close.
> 
> Do you mean if you set a breakpoint it won't trigger at all?
> 
> -- 
> Jacqueline Landman Gay | jac...@hyperactivesw.com
> HyperActive Software   | http://www.hyperactivesw.com


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


Re: Message Sent when Closing Stack

2021-06-10 Thread J. Landman Gay via use-livecode

On 6/10/21 11:59 AM, Bob Sneidar via use-livecode wrote:

Hi all.

We have gone around about this before, but I still cannot get this to work. I 
need to know if there is a message sent when a user clicks the close button in 
a window (on a Mac it's a little red dot in the upper left, on Windows a red 
square with an X).

I tried before closeStack, closeStackRequest etc, and these are not getting 
triggered when I close the stack this way.


You want closeStackRequest for that. Note that if you don't pass the message 
the stack won't close.

Do you mean if you set a breakpoint it won't trigger at all?

--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software   | http://www.hyperactivesw.com

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


Re: Message Sent when Closing Stack

2021-06-10 Thread Tom Glod via use-livecode
this will work

on closeStackRequest

  answer "When you press 'X' Do you want to minimize or exit?" with
"Exit" or "Minimize"

  if it = "Minimize" then
 set the iconic of me to true
  else
 quit
  end if

end closeStackRequest

On Thu, Jun 10, 2021 at 2:21 PM Craig Newman via use-livecode <
use-livecode@lists.runrev.com> wrote:

> Several are sent:
> “closeCard"
> “closeStack”
> “closeStackRequest”
>
> Crag
>
> > On Jun 10, 2021, at 12:59 PM, Bob Sneidar via use-livecode <
> use-livecode@lists.runrev.com> wrote:
> >
> > Hi all.
> >
> > We have gone around about this before, but I still cannot get this to
> work. I need to know if there is a message sent when a user clicks the
> close button in a window (on a Mac it's a little red dot in the upper left,
> on Windows a red square with an X).
> >
> > I tried before closeStack, closeStackRequest etc, and these are not
> getting triggered when I close the stack this way.
> >
> > Bob S
> > ___
> > use-livecode mailing list
> > use-livecode@lists.runrev.com
> > Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> > http://lists.runrev.com/mailman/listinfo/use-livecode
>
>
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>


-- 
Tom Glod
Founder & Developer
MakeShyft R.D.A (www.makeshyft.com)
Mobile:647.562.9411
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Message Sent when Closing Stack

2021-06-10 Thread Craig Newman via use-livecode
Several are sent:
“closeCard"
“closeStack”
“closeStackRequest”

Crag

> On Jun 10, 2021, at 12:59 PM, Bob Sneidar via use-livecode 
>  wrote:
> 
> Hi all. 
> 
> We have gone around about this before, but I still cannot get this to work. I 
> need to know if there is a message sent when a user clicks the close button 
> in a window (on a Mac it's a little red dot in the upper left, on Windows a 
> red square with an X). 
> 
> I tried before closeStack, closeStackRequest etc, and these are not getting 
> triggered when I close the stack this way.  
> 
> Bob S
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


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