Path: utzoo!utgpu!news-server.csri.toronto.edu!mailrus!cs.utexas.edu!uunet!iconsys!ohs!bhil From: bhil@ohs.UUCP (Brian T. Hill) Newsgroups: comp.sys.mac.programmer Subject: Movable-modal dialogs Message-ID: <557@ohs.UUCP> Date: 4 Jul 90 02:25:46 GMT Organization: Orem High School, Orem, Utah Lines: 24 I recently downloaded the movable-modal WDEF from apple.com and put it into a program of mine. As I prepared to do so, I wondered how the user would be able to switch applications in MultiFinder if I didn't allow them to click outside the dialog window. When I got the program running (I was using THINK C 4.0 with its debugger) I found that there wasn't a problem: MultiFinder caught the mouseclick before I got an event for it. In fact, I never got an event for it. Well, that was cool, until I ran it without the debugger. This time, when I had the movable-modal up and I clicked on the MultiFinder icon, I got 9 (yes, NINE) events for it! After I got the events (which led to 9 SysBeep() calls) it finally swapped applications. I rebooted and the same thing happened. The same thing happens when I build the application to disk and run it. The only time it doesn't happen is when I'm using the THINK C debugger. Why is MultiFinder giving me the mouseclick event? Why is it giving it to me nine times? I know this isn't really a big problem, but I'd like to solve it before we start our BETA sites next week. Brian T. Hill trACE(tm) Software Development bhil@ohs.uunet.uu.net bhil@ohs.uucp