Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!ll-xn!mit-eddie!gary From: gary@eddie.MIT.EDU (Gary Samad) Newsgroups: comp.sys.amiga Subject: Re: Rapid Stimulus Displaying on the Amiga Help Message-ID: <5741@eddie.MIT.EDU> Date: Thu, 7-May-87 13:21:46 EDT Article-I.D.: eddie.5741 Posted: Thu May 7 13:21:46 1987 Date-Received: Sat, 9-May-87 04:39:43 EDT References: <912@watcgl.UUCP> <5645@eddie.MIT.EDU> <17730@sun.uucp> Reply-To: gary@eddie.MIT.EDU (Gary Samad) Distribution: comp Organization: MIT, EE/CS Computer Facilities, Cambridge, MA Lines: 26 Keywords: Fast, Screen, Window, RastPort, etc displays In article <17730@sun.uucp> cmcmanis@sun.uucp (Chuck McManis) writes: -In article <5645@eddie.MIT.EDU>, gary@eddie.MIT.EDU (Gary Samad) writes: -> Unfortunately, you're right about this one. WindowToFront and WindowToBack -> and a few others actually only REQUEST that the window be moved to the front -> (or whatever) and return immediately... -> ...Anyone have a solution (even just some -> way to wait until the requested action has really been performed)? -> Gary - -The simplest way to do this is to wait for the IDCMP message ACTIVEWINDOW -for activating the window. So your code goes (Note this is psuedo code - - ModifyIDCMP(MyWindow,ACTIVEWINDOW); - WindowToFront(MyWindow); ^^^^^^^^^^^^^ etc. - ModifyIDCMP(MyWindow,NOACTIVEWINDOW); - -I don't know if there are IDCMP messages for your window coming to the front -but I thing there are. ---Chuck McManis Good idea! However, this would only work for ActivateWindow. Anyone have any ideas about WindowToFront and WindowToBack? Gary