Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!elroy.jpl.nasa.gov!jato!jdickson From: jdickson@jato.jpl.nasa.gov (Jeff Dickson) Newsgroups: comp.sys.amiga.programmer Subject: Gadgets Message-ID: <1991Jun5.153927.20310@jato.jpl.nasa.gov> Date: 5 Jun 91 15:39:27 GMT Reply-To: jdickson@jato.Jpl.Nasa.Gov (Jeff Dickson) Organization: Jet Propulsion Laboratory, Pasadena, CA Lines: 29 I have a gadget that when selected and then subsequently deselected I'd like to get the GADGETUP ICMP event. However, despite what the 1.3 RKM (blue cover) says, all that I ever get in the GADGETDOWN event. According to the manual, if I create the gadget with the activation flags GADGIMMEDIATE and RELVERIFY - I should receive these two events. The loop I am using to watch for the GADGETUP event is something like this: for (;;) { if (!(msp = GetMsg(win->UserPort))) { WaitPort(win->UserPort); continue; } n = ((struct IntuiMessage *)msp)->Class; ReplyMsg(msp); if (n == GADGETUP) break; } Please excuse any mispellings as I am going from memory. BTW, this is a boolean gadget. I believe all the other fields in the gadget structure to be set correctly, because the gadget does what it is supposed to do other- wise. Please help. jeff