I'm experimenting with what the Amiga RKRM / Dev Wiki refer to as "composite gadgets", i.e. gadget classes composed of other BOOPSI gadgets. My experimental gadget is actually a layout consisting of a few button.gadget objects; basically it's a kind of a toolbar for input selection. As far as I understand it, I'll need to implement a GM_HANDLEINPUT routine, in which I'll process the input and identify the actual button pressed. After that, I need to inform Intuition about the button choice, preferably returning a code that the programmer will be able to retrieve in his WM_HANDLEINPUT event loop. How would I go about accomplishing that? Does the following bit of RKRM documentation (Intuition / BOOPSI Gadgets chapter) provide the key?
For both GM_GOACTIVE and GM_HANDLEINPUT, the gadget can bitwise-OR any of these "go inactive" return values with GMR_VERIFY. The GMR_VERIFY flag tells Intuition to send a GADGETUP IntuiMessage to the gadget's window. If the gadget uses GMR_VERIFY, it has to supply a value for the IntuiMessage.Code field. It does this by passing a value in the gpInput.gpi_Termination field.General advice as well as code examples will be greatly appreciated.