receiving notification in a function when a gadget attrib change
Post date
Tue, 02/04/2025 - 10:21
Hello again.
I'm searching the way to have a hook function or something, executed when some attribute change in a gadget. I've read about the target thing to automatically link the changes between gadgets, but what I want to do is simply something to be executed when an attrib of a gadget change, to reformat some string...
Thinking about it, as i'm currently developping the gadget, maybe I can just manage "a function pointer to be notified" , as an attrib itself ?
Is there another way ?
Online Status
Apparently, you GOT to extend a "modelclass" and have an object as target to receive updates from gadets... oO ...
still investigating...
Looks like it:
I didn't know you could just manage private transient class using just MakeClass/FreeClass with no class name and just superclass, without pubishing it with addClass ... Then just make one "modelclass" with its own dispatcher instance and use it at target. must be it.