Close Box and Stand Alone Apps in LiveCode
Hi Everyone, If a standalone LiveCode app in Windows has only one window open and the user clicks the close box in the window, does this quit the app or is there still an app menu from which the user must shut down? I ask because I develop on Macs and do not have easy access to a Windows computer to compare. Much obliged, Gregory ___ 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: Close Box and Stand Alone Apps in LiveCode
The app quits. This is typical Windows behavior, and confuses a lot of people switching from Windows to Mac. I cannot speak for going the other direction because I have never seen a case where that actually happened. jab! ;-) Bob On Aug 31, 2012, at 8:54 AM, Gregory Lypny wrote: Hi Everyone, If a standalone LiveCode app in Windows has only one window open and the user clicks the close box in the window, does this quit the app or is there still an app menu from which the user must shut down? I ask because I develop on Macs and do not have easy access to a Windows computer to compare. Much obliged, Gregory ___ 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: Close Box and Stand Alone Apps in LiveCode
Is there a way in LC to catch the action of the close button and display a are you sure you want to quit message? SKIP On Fri, Aug 31, 2012 at 12:01 PM, Bob Sneidar b...@twft.com wrote: The app quits. This is typical Windows behavior, and confuses a lot of people switching from Windows to Mac. I cannot speak for going the other direction because I have never seen a case where that actually happened. jab! ;-) Bob On Aug 31, 2012, at 8:54 AM, Gregory Lypny wrote: Hi Everyone, If a standalone LiveCode app in Windows has only one window open and the user clicks the close box in the window, does this quit the app or is there still an app menu from which the user must shut down? I ask because I develop on Macs and do not have easy access to a Windows computer to compare. Much obliged, Gregory ___ 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 ___ 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: Close Box and Stand Alone Apps in LiveCode
Thanks Bob, Much appreciated. Since I want to have my students log their signing out when quitting, I guess I should determine how many windows are open at the time a close box is clicked, and then assume that the intention is to quit if there is only one. Gregory The app quits. This is typical Windows behavior, and confuses a lot of people switching from Windows to Mac. I cannot speak for going the other direction because I have never seen a case where that actually happened. jab! ;-) Bob ___ 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: Close Box and Stand Alone Apps in LiveCode
On 08/31/2012 07:01 PM, Bob Sneidar wrote: The app quits. This is typical Windows behavior, and confuses a lot of people switching from Windows to Mac. I cannot speak for going the other direction because I have never seen a case where that actually happened. jab! ;-) And this is also what will happen in Linux. Bob On Aug 31, 2012, at 8:54 AM, Gregory Lypny wrote: Hi Everyone, If a standalone LiveCode app in Windows has only one window open and the user clicks the close box in the window, does this quit the app or is there still an app menu from which the user must shut down? I ask because I develop on Macs and do not have easy access to a Windows computer to compare. Much obliged, Gregory ___ 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 ___ 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: Close Box and Stand Alone Apps in LiveCode
Hi Skip, Am 31.08.2012 um 18:06 schrieb Magicgate Software - Skip Kimpel s...@magicgate.com: Is there a way in LC to catch the action of the close button and display a are you sure you want to quit message? catch the closeStackRequest message :-) SKIP Best Klaus -- Klaus Major http://www.major-k.de kl...@major.on-rev.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: Close Box and Stand Alone Apps in LiveCode
To be fair, some Mac apps do too. For some apps, it just makes sense. For some it does not. What always got me about the Windows way was the fact that many apps open as a window within which other windows open. So if you want to close the inner window when it is maximized, you have to be careful which X you click because you might actually quit the whole app! The idea of a window within a window I have always thought was an odd thing with no real correlation to a real world analog, especially when closing all the inner windows exposes a grey wall through which nothing can be seen. How is that a window? Bob On Aug 31, 2012, at 9:11 AM, Richmond wrote: On 08/31/2012 07:01 PM, Bob Sneidar wrote: The app quits. This is typical Windows behavior, and confuses a lot of people switching from Windows to Mac. I cannot speak for going the other direction because I have never seen a case where that actually happened. jab! ;-) And this is also what will happen in Linux. Bob ___ 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: Close Box and Stand Alone Apps in LiveCode
I haven't tested this in 5.5.1 but it used to be that closing the last window in an LC standalone app on a Mac quit the application. There are Mac Apps, usually simple utilities that only have one window, that do that but I've found that the more normal Mac behavior is for the app to stay open until the user quits it from a menu/key combination action. I think this was mentioned in another thread but the closeStackRequest message is the place to handle this. Pete lcSQL Software http://www.lcsql.com On Fri, Aug 31, 2012 at 8:54 AM, Gregory Lypny gregory.ly...@videotron.cawrote: Hi Everyone, If a standalone LiveCode app in Windows has only one window open and the user clicks the close box in the window, does this quit the app or is there still an app menu from which the user must shut down? I ask because I develop on Macs and do not have easy access to a Windows computer to compare. Much obliged, Gregory ___ 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: Close Box and Stand Alone Apps in LiveCode
The way to mimic the normal behavior of a Mac application staying open when the last window is closed, is to have you main stack be a splash stack that remains hidden the entire time, and you true application stack be an included stack or substack. Create a menu for the mainstack so you can reopen other stacks in your app. Bob On Aug 31, 2012, at 10:24 AM, Peter Haworth wrote: I haven't tested this in 5.5.1 but it used to be that closing the last window in an LC standalone app on a Mac quit the application. There are Mac Apps, usually simple utilities that only have one window, that do that but I've found that the more normal Mac behavior is for the app to stay open until the user quits it from a menu/key combination action. I think this was mentioned in another thread but the closeStackRequest message is the place to handle this. Pete lcSQL Software http://www.lcsql.com On Fri, Aug 31, 2012 at 8:54 AM, Gregory Lypny gregory.ly...@videotron.cawrote: Hi Everyone, If a standalone LiveCode app in Windows has only one window open and the user clicks the close box in the window, does this quit the app or is there still an app menu from which the user must shut down? I ask because I develop on Macs and do not have easy access to a Windows computer to compare. Much obliged, Gregory ___ 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 ___ 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
Close Box and Stand Alone Apps in LiveCode
Good suggestion, Bob. Thank you. Gregory The way to mimic the normal behavior of a Mac application staying open when the last window is closed, is to have you main stack be a splash stack that remains hidden the entire time, and you true application stack be an included stack or substack. Create a menu for the mainstack so you can reopen other stacks in your app. Bob ___ 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: Close Box and Stand Alone Apps in LiveCode
To be honest, I hate the idea of splash stack/main stack unless there's a valid user related reason for a splash stack. It just complicates the application stack structure and, if I'm not mistaken, only the splash stack is compiled when you create a standalone, the other stacks being right there in plain view. Dealing with this particular situation is probably two lines of code in a closeStackRequest handler. Pete lcSQL Software http://www.lcsql.com On Fri, Aug 31, 2012 at 1:24 PM, Bob Sneidar b...@twft.com wrote: The way to mimic the normal behavior of a Mac application staying open when the last window is closed, is to have you main stack be a splash stack that remains hidden the entire time, and you true application stack be an included stack or substack. Create a menu for the mainstack so you can reopen other stacks in your app. Bob On Aug 31, 2012, at 10:24 AM, Peter Haworth wrote: I haven't tested this in 5.5.1 but it used to be that closing the last window in an LC standalone app on a Mac quit the application. There are Mac Apps, usually simple utilities that only have one window, that do that but I've found that the more normal Mac behavior is for the app to stay open until the user quits it from a menu/key combination action. I think this was mentioned in another thread but the closeStackRequest message is the place to handle this. Pete lcSQL Software http://www.lcsql.com On Fri, Aug 31, 2012 at 8:54 AM, Gregory Lypny gregory.ly...@videotron.cawrote: Hi Everyone, If a standalone LiveCode app in Windows has only one window open and the user clicks the close box in the window, does this quit the app or is there still an app menu from which the user must shut down? I ask because I develop on Macs and do not have easy access to a Windows computer to compare. Much obliged, Gregory ___ 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 ___ 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: Close Box and Stand Alone Apps in LiveCode
True enough, but password protecting the other stacks encrypts the code in them, so I am not sure what the risk is. I suppose to prevent the stacks from being used by themselves, you can add some code in preOpenStack that checks what the parent stack is. Bob On Aug 31, 2012, at 2:10 PM, Peter Haworth wrote: To be honest, I hate the idea of splash stack/main stack unless there's a valid user related reason for a splash stack. It just complicates the application stack structure and, if I'm not mistaken, only the splash stack is compiled when you create a standalone, the other stacks being right there in plain view. Dealing with this particular situation is probably two lines of code in a closeStackRequest handler. Pete ___ 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: Close Box and Stand Alone Apps in LiveCode
On 8/31/12 4:29 PM, Bob Sneidar wrote: True enough, but password protecting the other stacks encrypts the code in them, so I am not sure what the risk is. I suppose to prevent the stacks from being used by themselves, you can add some code in preOpenStack that checks what the parent stack is. Another reason is that loose files can get lost. That's mostly true on Windows and Linux because they aren't inside an app bundle. Whenever possible I try to keep everything in a single file, but sometimes you can't. -- 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: Close Box and Stand Alone Apps in LiveCode
Yes, it's kinda the general untidiness of the splash stack approach that gets to me. One compiled file is much better untless there's a really compelling reason why you can't do that. Pete lcSQL Software http://www.lcsql.com On Fri, Aug 31, 2012 at 2:54 PM, J. Landman Gay jac...@hyperactivesw.comwrote: Another reason is that loose files can get lost. That's mostly true on Windows and Linux because they aren't inside an app bundle. Whenever possible I try to keep everything in a single file, but sometimes you can't. ___ 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: Close Box and Stand Alone Apps in LiveCode
On Aug 31, 2012, at 3:54 PM, J. Landman Gay wrote: On 8/31/12 4:29 PM, Bob Sneidar wrote: True enough, but password protecting the other stacks encrypts the code in them, so I am not sure what the risk is. I suppose to prevent the stacks from being used by themselves, you can add some code in preOpenStack that checks what the parent stack is. Another reason is that loose files can get lost. That's mostly true on Windows and Linux because they aren't inside an app bundle. Whenever possible I try to keep everything in a single file, but sometimes you can't. Of course, the big advantage of the splash screen approach is that you can update components of the application without recompiling it (at least on desktop systems.) Devin Devin Asay Office of Digital Humanities Brigham Young University ___ 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: Close Box and Stand Alone Apps in LiveCode
The really compelling reasons for me is properties, and certain limits placed on a compiled app. I got into the habit of using properties to store information from session to session, and since a compiled app cannot be modified, I cannot do that. At least that is my understanding. Bob On Aug 31, 2012, at 3:03 PM, Peter Haworth wrote: Yes, it's kinda the general untidiness of the splash stack approach that gets to me. One compiled file is much better untless there's a really compelling reason why you can't do that. Pete lcSQL Software http://www.lcsql.com On Fri, Aug 31, 2012 at 2:54 PM, J. Landman Gay jac...@hyperactivesw.comwrote: Another reason is that loose files can get lost. That's mostly true on Windows and Linux because they aren't inside an app bundle. Whenever possible I try to keep everything in a single file, but sometimes you can't. ___ 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