Path: utzoo!mnetor!tmsoft!torsqnt!news-server.csri.toronto.edu!rutgers!ucsd!ucbvax!unisoft!hoptoad!farcomp!murat From: murat@farcomp.UUCP (Murat Konar) Newsgroups: comp.sys.mac.programmer Subject: Re: WDEF Question Message-ID: <284@farcomp.UUCP> Date: 17 Dec 90 02:38:28 GMT References: <252u3129.660984232@fergvax> Reply-To: murat@farcomp.UUCP (Murat Konar) Distribution: comp Organization: Farallon Computing Inc. Berkeley, CA Lines: 25 In article <252u3129.660984232@fergvax> 252u3129@fergvax.unl.edu (Mike Gleason) writes: >window using the windoid. I could have sworn I used to be able to write > > w = NewWindow(0L,&rekt,"\pBlah",isVisible,ProcID,-1L,hasGoAway,refcon); > >where ProcID is the resource ID of my WDEF (the Windoid's is 200). Why does >one of the plain jane default WDEFs appear as my window instead of the windoid? The correct incanation is: w = NewWindow(0L,&rekt,"\pBlah",isVisible,(ProcID * 16) + varCode ,-1L, hasGoAway,refcon); If you just want a standard window, 0 works since (16 * 0) = 0. I suspect that since the window manager can't find the WDEF you specified (in your case it works out to WDEF proc id = 12, varcode = 8) it just substitutes the plain jane version. Better than crashing. -- ____________________________________________________________________ Have a day. :^| Murat N. Konar murat@farcomp.UUCP -or- farcomp!murat@apple.com