Joe Lewis Wilkins
pepetoo at cox.net
Wed Nov 17 02:27:23 EST 2010
Mark, I can't get this to work properly. Frankly, I think something like this should be automatically resolved as part of the Auto script on the Menu Builder. As is, too complicated; plus it doesn't work even implementing your suggestions. I may have made a mistake, but I don't think so. I've just decided to always save with that caveat to users. Not a friendly solution, but my users will be very bright professionals. Not to say that we haven't all screwed up at one time or another. (smile)
On Nov 16, 2010, at 2:21 PM, Mark Schonewille wrote:
> Those messages can be cought, but should not be sent. When you click in the closebox, the closeStackRequest is sent. When you choose Quit in the application menu, the shutdownRequest message is sent. The Quit menu item only works on windows! Just to be save, execute the script attached to the Quit menu item only on Windows and Linux:
> case "Quit"
> if the platform is in "Win32,Linux" then
> end if
> To handle the Quit menu item on Mac OS X, do the following:
> on shutdownRequest
> end shutdownRequest
> If the quitMyProject locks the messages, then the closeStackRequest and the shutdownRequest messages will not be sent a second time when the quitMyProject calls the quit command (this is important).
> You need to adjust the quitMyProject handler a little. You might need to add lines for certain externals, such as revSpeak, you might want to remove the lines with regard to databases if you don't use any.
> Best regards,
> Mark Schonewille
> Economy-x-Talk Consulting and Software Engineering
> Homepage: http://economy-x-talk.com
> Twitter: http://twitter.com/xtalkprogrammer
> KvK: 50277553
> Follow Economy-x-Talk on Facebook now and get a free Color Converter license http://qurl.tk/gn (read the conditions)
> On 16 nov 2010, at 22:42, Joe Lewis Wilkins wrote:
>> Ooops, not so perfectly. It doesn't quit when you don't want to save. Oh well. A work in progress. (smile)
>> Joe Lewis Wilkins
>> On Nov 16, 2010, at 1:39 PM, Joe Lewis Wilkins wrote:
>>> Hi Mark,
>>> Since I got it to work perfectly, I thought some others might appreciate a snippet! Probably a neater and shorter way of doing this, but what the heck! I suppose I could have just gone for the name of the application, but this is generic enough to handle any stack with any standalone name.
>>> Joe Wilkins
>>> case "Quit"
>>> get the long name of this stack
>>> delete the last char of it
>>> put the number of chars in it into numChars
>>> put Char (numChars-2) to numChars of it into myName
>>> if myName is "rev" then
>>> end if
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
More information about the Use-livecode