(Rev 2.8.1) resume and defaultstack

Mark Schonewille m.schonewille at economy-x-talk.com
Fri Feb 15 03:41:34 EST 2008


Dear Russell,

This problem might be related to the following bug: <http:// 
quality.runrev.com/qacenter/show_bug.cgi?id=3412>.

If you apply the patch described in the bug, be aware that you might  
get trapped in a repeat loop. You might need to check the lockmessages.

Best regards,

Mark Schonewille

--

Economy-x-Talk Consulting and Software Engineering
http://economy-x-talk.com
http://www.salery.biz

Convert colours between different colour spaces with Color Converter.  
Download at http://economy-x-talk.com/cc.html



Op 15-feb-2008, om 8:53 heeft Russell Martin het volgende geschreven:

> When using an answer dialog from within a resume handler, the
> defaultstack becomes "answer dialog", yet, when using an answer dialog
> in other handlers, the defaultstack does NOT become "answer dialog".
>
> I've tested this in both OS X and Windows XP and it does it in both.
>
> Is this a bug?
>
> I've attempted to attache a file demonstrating this. Must build as
> standalone first (I can't get "on resume" to fire from within the IDE-
> is there a way?)
>
> If the attachment doesn't come through, or you don't want to download
> it, here's how to recreate this:
> Create a new main stack.
>
> Place a scrolling field on it and name it "ResultsField"
>
> Name the card "TheCard"
>
> Name the stack "Untitled 2"
>
> Place a button on the stack.
>
> Inside the mouseUp handler for the button, place the following code:
> put "the defaultstack is: " & the defaultstack & cr into field
> "ResultsField" of card "TheCard" of stack "Untitled 2"
>   answer "Yes or no?" with "Yes" or "No"
>   put "it was: " & it & cr after field "ResultsField" of card  
> "TheCard"
> of stack "Untitled 2"
>   put "the defaultstack is: " & the defaultstack & cr after field
> "ResultsField" of card "TheCard" of stack "Untitled 2"
>   answer "Up or down?" with "Up" or "Down"
>   put "it was: " & it & cr after field "ResultsField" of card  
> "TheCard"
> of stack "Untitled 2"
>   put "the defaultstack is: " & the defaultstack & cr after field
> "ResultsField" of card "TheCard" of stack "Untitled 2"
>
> In the stack script, create and "on resume" handler and place the  
> exact
> same code as you did in the button's "on mouseUp" handler.
>
> Build a stand alone.
>
> Run the stand alone.
>
> When you click on the button, and answer the dialogs, the ResultsField
> will show the default stack as being "Untitled 2" every time.
>
> However, when you switch to another app and then switch back to
> Untitled 2, the defaultstack will be "answer dialog" every time.
>
>
>
>        
> ______________________________________________________________________ 
> ______________
> Be a better friend, newshound, and
> know-it-all with Yahoo! Mobile.  Try it now.  http:// 
> mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your  
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution




More information about the use-livecode mailing list