Path: utzoo!utgpu!news-server.csri.toronto.edu!mailrus!uwm.edu!cs.utexas.edu!uunet!van-bc! From: lphillips@lpami.wimsey.bc.ca (Larry Phillips) Newsgroups: comp.sys.amiga Subject: Re: Activating Gadgets in C Message-ID: <1842@lpami.wimsey.bc.ca> Date: 3 Aug 90 14:47:28 GMT Lines: 43 Return-Path: To: van-bc!rnews In <325@modcomp.UUCP>, kevin@modcomp.UUCP (Kevin Smith) writes: > >I was hoping somebody someone from C= was going to give the real problem >and solution about waiting for ACTIVEWINDOW. I have seen this question >asked and answered before and am wondering if this bit about waiting for >ACTIVEWINDOW is documented anywhere, like in the new RKM's or any other >book. It's in the new RKM, as well as in the disk based autodocs available from CATS for about $20-25 --------------excerpt----------------- The success of this function depends on a rather complex set of conditions. The intent is that the user is never interrupted from what interactions he may have underway. The current set of conditions includes: - The Window must be active. (Use the ACTIVEWINDOW IDCMP). - No other gadgets may be in use. This includes system gadgets, such as those for window sizing, dragging, etc. - If the gadget is in a Requester, that Requester must be active. (Use the REQSET and REQCLEAR IDCMP). - The right mouse button cannot be held down (e.g. menus ------------------------------- For anyone doing development work, I cannot recommend the disk based autodocs highly enough. With Mike Sinz's Getautodoc program, it becomes VERY easy to look this sort of thing up (took me about 1/5 second with CEDPro to place the cursor on the word 'ActivateGadget' in your posting, press ALT-L, and have the info appear in another window), and the information is the latest stuff, which might be different than what's in the hard copy manuals. -larry -- Sex is better than logic, but I can't prove it. +-----------------------------------------------------------------------+ | // Larry Phillips | | \X/ lphillips@lpami.wimsey.bc.ca -or- uunet!van-bc!lpami!lphillips | | COMPUSERVE: 76703,4322 -or- 76703.4322@compuserve.com | +-----------------------------------------------------------------------+