Datagrids and Nested Behaviors

Bob Sneidar bobsneidar at iotecdigital.com
Thu Jul 19 16:44:44 EDT 2018


Bernd, you are a genius. I apparently have the heirarchy of behaviors backwards. I would have thought that this would set the behavior of ALL datagrids to include the button script. That of course would be disasterous. 

Bob S


> On Jul 19, 2018, at 10:35 , Niggemann, Bernd via use-livecode <use-livecode at lists.runrev.com> wrote:
> 
> Bob,
> 
> if you want to use a a behavior for the datagrids make a button with 
> 
> on mouseDoubleUp
>   put the long name of the target
> end mouseDoubleUp
> 
> and then set the behavior of your datagrids like this
> 
> set the behavior of the behavior of the behavior of group "datagrid 1" to the long id of button "myButtonName"
> 
> 
> this will put the "new" behavior at the top of the two behaviors of the datagrid group. Obviously that will not work with editable fields.
> 
> Kind regards
> Bernd





More information about the Use-livecode mailing list