Data Grid Template stack triggers messages in main stack

Gerry Orkin gerry.orkin at gmail.com
Tue May 7 23:55:00 EDT 2013


Mike, that makes sense, but it doesn't happen with my other project's datagrid template substack. Hence my surprise.

Gerry


On 08/05/2013, at 12:21 PM, Mike Bonner <bonnmike at gmail.com> wrote:

> Since the datagrid template stacks are substacks if there are no handlers
> to "catch" openstack closestack in the grid template stacks they go up the
> message path to the main stack where they are "handled" by the openstack
> /closestack in the stackscript.  To stop this you could put an empty
> openstack/close stack in the template stack, or put in a check against the
> target to make sure you actually want the script to run, or you can move
> them to the first card in the main stack (the card that is open first when
> the app starts)  so that when a substack causes an openstack/closestack
> there are no handlers in the stack script to respond to the message.  If I
> recall correctly, when the message passes from the substack to the
> mainstack it is handed to the stack not the card.
> 
> 
> 
> 
> On Tue, May 7, 2013 at 8:14 PM, Gerry Orkin <gerry.orkin at gmail.com> wrote:
> 
>> No and no :)
>> 
>> 
>> Gerry
>> 
>> On Wed, May 8, 2013 at 12:09 PM, Andrew Kluthe <andrew at ctech.me> wrote:
>> 
>>> Do you have any handlers for these in your data grid? Is your datagrid on
>>> more than 1 card?
>>> On Tue, May 7, 2013 at 7:58 PM, Gerry Orkin <gerry.orkin at gmail.com>
>> wrote:
>>>> Whenever I open or close the data grid template stack in a particular
>>>> stack in the IDE the openstack and closestack messages in the main stack
>>>> get triggered. I've used data grids in a few stacks but haven't seen
>> that
>>>> behaviour before LC 6.0.1.
>>>> 
>>>> What's the deal?
>>>> 
>>>> Cheers
>>>> 
>>>> Gerry
>>>> _______________________________________________
>>>> 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
>>>> 
>>> --
>>> Regards,
>>> Andrew Kluthe
>>> andrew at ctech.me
>>> _______________________________________________
>>> 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