Bob Sneidar wrote:

Nope. You would think it does, but I have this in the stack script:

on closeStackRequest
   save this stack
   pass closeStackRequest
end closeStackRequest

I still get the save dialog when I close it.

The script above will work well in a standalone, but won't account for the IDE's needs.

The IDE monitors stacks for actions which would flag it as "dirty" (needing saving), but there is no general stack property for that.

Given this, saving will indeed save the stack but won't inform the IDE that the stack is now "clean".

Instead, you can let the IDE handle both with this, which I use in my Devo plugin:

   dispatch "menuPick" to btn "File" of grp "revMenuBar" \
     of stack "revMenuBar" with "Save"


--
 Richard Gaskin
 Fourth World Systems
 Software Design and Development for the Desktop, Mobile, and the Web
 ____________________________________________________________________
 ambassa...@fourthworld.com                http://www.FourthWorld.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

Reply via email to