Using a Reaction class String gadget in a Reaction class window, I'd like the
program to be able to tell when the gadget goes active.
Does anyone know how to get that activation information?
Reaction HandleInput doesn't have a "WMHIGadgetDown" and WMHIActive tells
you that the Window is active, but not which gadget.
The WINDOW_IDCMPHook hook never seems to get called with an
IDCMPGadgetDown, no matter what is in WINDOW_IDCMPHookBits.
It looks like maybe you could use IDCMPIDCMPUpdate, but I don't know how to
get the string gadget to do an OM_Notify or OM_Update upon activation.
Maybe it is necessary to create a new subclass that just sends all incoming
methods on to its String class parent except in OM_Activate it also generates
a message to the Window port?
Have I missed something simple?
Thanks,
Tom
Fri, 2013-04-19 04:23
#1
Program notification when String Gadget goes Active