Datagrids and Nested Behaviors

Bob Sneidar bobsneidar at iotecdigital.com
Wed Jul 25 10:35:50 EDT 2018


Thanks Brian. There IS no better development community in the world than this one. This all began with Hypercard communities and their spirit of sharing and mutual support. We seem to be the last bastion. 

Bob S


> On Jul 24, 2018, at 16:31 , Brian Milby via use-livecode <use-livecode at lists.runrev.com> wrote:
> 
> PR submitted on Bug 21427.
> https://github.com/livecode/livecode-ide/pull/1987
> 
> Since it is a full PR, I went ahead and switched over to using a script
> local everywhere and initialize it when the DG is initialized.  I also
> looked for an object in the DG resource stack instead of hard coding the
> stack name.  I'm thinking about posting a stack that can make the temporary
> modifications necessary to allow this functionality while waiting on the
> code to make it to production.  The temp mods will be much closer to what
> was posted in this thread.
> 
> On Tue, Jul 24, 2018 at 10:03 AM, Bob Sneidar via use-livecode <
> use-livecode at lists.runrev.com> wrote:
> 
>> Never mind Brian, it works. I had the behavior of the custom button set
>> the the behavior STACK and NOT the reDataGridLibrary stack button (now
>> empty).
>> 
>> Once I got the behavior of the custom button set to the old behavior
>> button, the datagrid now works! You guys are freaking geniuses!
>> 
>> Bob S
>> 
>> 
>>> On Jul 24, 2018, at 07:57 , Brian Milby via use-livecode <
>> use-livecode at lists.runrev.com> wrote:
>>> 
>>> I’ll put something together tonight. The code in the library has to be
>> updated before opening a card with a DG that has the adjusted behavior
>> chain. I have an idea on how to do it in script, but need to test it out to
>> verify it will work.
>>> On Jul 24, 2018, 9:54 AM -0500, Bob Sneidar via use-livecode <
>> use-livecode at lists.runrev.com>, wrote:
>>>> I did so. I get this when opening my test stack:
>>>> 
>>>> 91,260,123
>>>> 62,260,123
>>>> 77,260,123
>>>> 456,260,57
>>>> 534,260,123
>>>> 253,260,123
>>>> 241,236,1,_Initialize
>>>> 353,0,0,stack "/Applications/LiveCode Community 9.0.1 (rc
>> 1).app/Contents/Tools/Toolset/palettes/revdatagridlibrary/
>> behaviorsdatagridbuttonbehavior.livecodescript"
>>>> 573,188,1,_Initialize
>>>> 
>>>> I'll poke around later.
>>>> 
>>>> Bob S
>>>> 
>>>> 
>>>>> On Jul 23, 2018, at 22:12 , Brian Milby via use-livecode <
>> use-livecode at lists.runrev.com> wrote:
>>>>> 
>>>>> local sResourceStack
>>>>> private function _ResourceStack
>>>>> local theStack, theCharNo
>>>>> 
>>>>> if sResourceStack is empty then
>>>>> put the behavior of me into theStack
>>>>> 
>>>>> repeat
>>>>> if trueWord -1 of theStack is "revDataGridLibrary" or theStack is
>>>>> empty then
>>>>> exit repeat
>>>>> else
>>>>> put the behavior of theStack into theStack
>>>>> end if
>>>>> end repeat
>>>>> 
>>>>> if theStack is not empty then
>>>>> put offset(" of stack", theStack) into theCharNo
>>>>> delete char 1 to (theCharNo + 3) of theStack
>>>>> end if
>>>>> put theStack into sResourceStack
>>>>> end if
>>>>> 
>>>>> return sResourceStack
>>>>> end _ResourceStack
>>>> 
>>>> 
>>>> _______________________________________________
>>>> 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