Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!wuarchive!uunet!fernwood!portal!cup.portal.com!phorgan From: phorgan@cup.portal.com (Patrick John Horgan) Newsgroups: comp.sys.amiga.programmer Subject: Re: Gadget "BUG" Message-ID: <43009@cup.portal.com> Date: Wed, 5 Jun 91 21:29:48 PDT Organization: The Portal System (TM) References: <1991Jun05.081036.20165@disk.uucp> Byron 'Maxwell' Guernsey said: > I'm having a small problem with the gadget interface in a program I have > written. At times the gadgets seem to get offset:: when I click on one > gadget another gadget's operation is performed. I think it happens after > quickly clicking twice on one gadget. It extends to the system gadgets in > my window as well...the close gadget gets offset to where I click on it and > nothing happens, then I go down and click on a gadget in my window and it > closes the window. :) > Byron, when you receive an event from Intuition, you have to handle all the events at your port. If you get another while or before handling the first, you won't get another signal. This means that you'll have an event on your queue, but won't react until another event happens. Suddenly you're out of sync, reacting to a different event than caused a signal! Just loop after handling an IntuiMessage back up to the GetMsg till no more are there. Then you can wait on the port again. Patrick J. Horgan pjh70@zeus.ras.amdahl.com