Path: utzoo!attcan!uunet!ndsuvax!nopuklic From: nopuklic@ndsuvax.UUCP (Blayne Puklich) Newsgroups: comp.sys.mac.programmer Subject: Re: MultiFinder Weirdness Message-ID: <1420@ndsuvax.UUCP> Date: 29 Sep 88 01:31:59 GMT References: Reply-To: nopuklic@ndsuvax.UUCP (Blayne Puklich) Organization: North Dakota State University Fargo, ND Lines: 28 In article rj0z+@andrew.cmu.edu (Robert George Johnston, Jr.) writes: > > I have written a program that I would like to make compatable >with MultiFinder. Actually, the program runs just fine, but when the >application is first launched, the application window opens underneath >all other open windows (such as the Finder's). > What does one have to do to get around this? Or, what have I done >wrong? > > Rob Johnston. Check your GetNewWindow() or NewWindow call, you probably are passing NIL for the behind parameter. You need to pass WindowPtr(-1) rather than NIL. Passing NIL will cause the window to appear behind all others, passing WindowPtr(-1) will cause it to appear in front. Hope this helps. ||+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++|| || Blayne Puklich nopuklic@plains.NoDak.edu || || NDSU Student ACM NU087763@NDSUVM1.bitnet || || Chairperson North Dakota State University, Fargo, ND || || || || "Everyone should have a Corvette, I think." || || NOTE: If nopuklic@plains.NoDak.edu bounces, revert to || || nopuklic@ndsuvax.BITNET. || ||-------------------------------------------------------------------------||