Selecting a Stack

Paul Hibbert paulhibbert at mac.com
Sat Sep 20 11:57:34 EDT 2014


John,

I noticed that the ask and answer dialogues both issue a 'suspendStack' message to the card, but there is no 'resumeStack' message when the dialogue is dismissed, maybe that is confusing listMagic. Going to the messageBox and back to the card does issue a 'suspendStack' and 'resumeStack' message.

You could try adding a 'resumeStack' command after the ask or answer command, something like:

on mouseUp
   answer "Hello World!" with "Cancel" or "Hello LiveCode!"
   resumeStack
end mouseUp

This seemed to work in the simple test I did, but I don't have listMagic and I'm not sure if this is the best way to address the problem, it's just a suggestion.

Paul


On Sep 20, 2014, at 7:25 AM, JB <sundown at pacifier.com> wrote:

> I juste tried it with the ask command and it
> did not work properly.  Maybe the message
> box and files dialog become the editable
> window and when they close the card is
> the editable window while the answer and
> ask commands do not become editable
> windows and the messages are not sent
> properly.  Either that or the message box
> is passing a message the others are not
> could be what is happening.
> 
> I can make it work so it is not a big problem
> for me.
> 
> John Balgenorth
> 
> 
> On Sep 20, 2014, at 7:01 AM, JB <sundown at pacifier.com> wrote:
> 
>> Hi Jacque,
>> 
>> Thanks for the info.
>> 
>> I tried it and it does not work.  The Dictionary says
>> if the stack is already in a editable window it does
>> not send the messages.
>> 
>> The problem is with ListMagic lines not refreshing
>> properly.  They will refresh from the message box
>> and back and from a dialog like getting a file but
>> not from a answer message.
>> 
>> It seems the message box is sending some kind of
>> pass message that the answer command does not
>> send but I do not no what the message box passes.
>> 
>> John Balgenorth
>> 
>> 
>> On Sep 20, 2014, at 6:49 AM, J. Landman Gay <jacque at hyperactivesw.com> wrote:
>> 
>>> See the toplevel command in the dictionary.  
>>> 
>>> On September 20, 2014 7:52:52 AM CDT, JB <sundown at pacifier.com> wrote:
>>>> When I click on the message box it becomes the active
>>>> window and then if I click on the card in my stack that is
>>>> currently displayed it becomes the active window.
>>>> 
>>>> When I use the answer command it becomes the active
>>>> window but after closing the answer window my card is
>>>> not the active window.  If I click on the finder and then
>>>> on the card it becomes the active window again.
>>>> 
>>>> How do I select the stack from a script so it becomes the
>>>> active window.  I guess this would be used in selecting a
>>>> stack that is already opened and then selecting another
>>>> stack that is also opened.
>>>> 
>>>> John Balgenorth
>>>> 
>>>> _______________________________________________
>>>> 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
>>> 
>>> -- 
>>> Jacqueline Landman Gay         |     jacque at hyperactivesw.com
>>> HyperActive Software           |     http://www.hyperactivesw.com
>>> 
>>> _______________________________________________
>>> 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