Close Box and Stand Alone Apps in LiveCode
Peter Haworth
pete at lcsql.com
Fri Aug 31 17:10:19 EDT 2012
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 <bobs at 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.lypny at videotron.ca>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 at 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 at 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 at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>
More information about the use-livecode
mailing list