Reaction String Gadget wmh_Code field
Posted: Thu May 16, 2013 3:21 pm
I'd like to be able to detect whether a Reaction String Gadget was exited by a TAB entry
or an ENTER entry , (or a gadget deactivation).
The string_gc Autodocs (53.20) don't specifically address the code field after WMHI_HANDLEINPUT,
but it seems that Reaction extends Intuition here by returning wmh_Code of 0 for ENTER
and 9 for TAB.
This behavior is what is documented for GadTools, so it seems reliable for Reaction. But
it should be documented.
Also, the Reaction STRINGA_RelVerifySpecial attribute can be used to get a GadgetUp
on gadget deactivation. Experimenting seems to show that wmh_Code comes back
as 10 in this case. Is that reliable?
Thanks,
Tom
or an ENTER entry , (or a gadget deactivation).
The string_gc Autodocs (53.20) don't specifically address the code field after WMHI_HANDLEINPUT,
but it seems that Reaction extends Intuition here by returning wmh_Code of 0 for ENTER
and 9 for TAB.
This behavior is what is documented for GadTools, so it seems reliable for Reaction. But
it should be documented.
Also, the Reaction STRINGA_RelVerifySpecial attribute can be used to get a GadgetUp
on gadget deactivation. Experimenting seems to show that wmh_Code comes back
as 10 in this case. Is that reliable?
Thanks,
Tom