Path: utzoo!attcan!uunet!husc6!mailrus!ncar!ames!pasteur!agate!violet.berkeley.edu!denn From: denn@violet.berkeley.edu (Leonard Rosenthol) Newsgroups: comp.sys.mac.programmer Subject: Re: MultiFinder Weirdness Summary: Try using GetNextEvent! Keywords: GNE, MF, DLOG Message-ID: <14919@agate.BERKELEY.EDU> Date: 2 Oct 88 03:37:57 GMT References: <1234600007@uxf.cso.uiuc.edu> Sender: usenet@agate.BERKELEY.EDU Organization: University of California, Berkeley Lines: 15 In article <1234600007@uxf.cso.uiuc.edu> emb1354@uxf.cso.uiuc.edu writes: > >What I've heard is that that is the expected behavior under MultiFinder. >Windows are opened in back and are brought to front if Pointer(-1) was sent >in the behind parameter of the GetNewWindow(), NewWindow(), GetNewDialog(), >etc. call. There really isn't anything you can do to correct it, just try >to work around it. > Eric is right that this is standard behaivor - however there are work arounds. The most commonly used one (and the one that Apple recommends) is to just call GetNextEvent (don't worry about the return value!) after doing the ShowWindow on your dialog. This works just fine and maintains compat. Leonard Rosenthol LazerWare, inc.