How to detect that user closed window

Peter Haworth pete at lcsql.com
Thu Feb 5 12:56:14 EST 2015


I think there's a global array in the IDE keyed by stack name with a value
of true/false that indicates whether the stack is "dirty".  You could
probably set that appropriately but unfortunately, I can't remember its
name, except that it begins with "g"!!!

Pete
lcSQL Software <http://www.lcsql.com>
Home of lcStackBrowser <http://www.lcsql.com/lcstackbrowser.html> and
SQLiteAdmin <http://www.lcsql.com/sqliteadmin.html>

On Thu, Feb 5, 2015 at 9:35 AM, Bob Sneidar <bobsneidar at iotecdigital.com>
wrote:

> Had to pass closeStackRequest, but I still get the menu. I am not sure
> there is a way in LC to do this, and there ought to be. Perhaps I’ll
> include a feature request for this, something like a property called
> suppressSavePrompt. It can be set to values “save” or “close”.
>
> Bob S
>
>
> On Feb 5, 2015, at 09:17 , Bob Sneidar <bobsneidar at iotecdigital.com
> <mailto:bobsneidar at iotecdigital.com>> wrote:
>
> Didn’t work.
>
> Bob S
>
> on closeStackRequest
>     dispatch "menuPick" to btn "File" of grp "revMenuBar" \
>             of stack "revMenuBar" with "Save"
> end closeStackRequest
>
> _______________________________________________
> 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