Is there a way to create a generic setprop handler?

Bob Sneidar bobsneidar at iotecdigital.com
Wed Aug 3 14:36:51 EDT 2022


If I understand you then no. The only thing I would suggest is to use dispatch to trigger the "general handler" in all of your virtual properties (custom property is not the right phrase when referring to getProp/setProp). 

Bob S


> On Aug 3, 2022, at 11:13 , David Epstein via use-livecode <use-livecode at lists.runrev.com> wrote:
> 
> Control “A” has many custom properties that are set by a variety of other controls.  If Control “A” has a "setProp property1” handler, it can react when property1 gets set.  But is there a way to give Control “A” a general handler that will be triggered whenever any of its custom properties is set?
> 
> David Epstein



More information about the use-livecode mailing list