Datagrids and Nested Behaviors

Richard Gaskin ambassador at fourthworld.com
Fri Jul 20 00:44:43 CEST 2018


Bob Sneidar wrote:
 > What I did (which actually makes a LOT more sense) is I set the
 > behavior of the button to the behavior of the datagrid, then I set the
 > behavior of the datagrid to the long id of the button. That broke it.

Your way sounds better to me.

If I understand correctly, what you're doing is:

      [ DataGrid ]
           |
           V
   [ Custom Behavior ]
           |
           V
[ Standard DB Behavior ]

That seems best, because it allows you control over the scope of your 
custom behavior.

If the last two were swapped then all DGs would inherit whatever's in 
your custom script.

Why didn't that work?  Did you pass all relevant messages?

-- 
  Richard Gaskin
  Fourth World Systems
  Software Design and Development for the Desktop, Mobile, and the Web
  ____________________________________________________________________
  Ambassador at FourthWorld.com                http://www.FourthWorld.com



More information about the use-livecode mailing list