Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!apple!vsi1!daver!kcdev!genco!rad From: rad@genco.bungi.com (Bob Daniel) Newsgroups: comp.sys.mac.programmer Subject: Re: Dialog problems in DA Message-ID: <179@genco.bungi.com> Date: 5 Jan 91 17:46:46 GMT References: <4927@tellab5.tellabs.com> <47695@apple.Apple.COM> <4932@tellab5.tellabs.com> Reply-To: rad@genco.bungi.com (Bob Daniel) Organization: Gentry & Assoc. Excelsior Springs, MO Lines: 28 In article <4932@tellab5.tellabs.com> kenk@tellabs.com (Ken Konecki) writes: >I was wondering when someone was going to ask me this. I was having >trouble with Font/DA mover renumbering the DITL resource. Consequently, >when I would call GetNewDialog(), the DITL resource number within the DLOG >template would be wrong. Is it possible to make the DITL resource owned by >the DLOG resource and have Font/DA mover put it in the system file >correctly? Doesn't sound like you are using owned resources. Your resources should be numbered starting at -16000 (and then increment each after). Which is a DRVR owner of ID 12. Increment the SubID for each DLOG/DITL. When loading the DLOG, load the ID based on the resource base passed in from the device control entry and add the SubID of the DLOG you want. TheDialog := GetNewDialog(rsrcBase + 1, nil, Pointer(-1)); where: rsrcBase := BOr($C000, BSL(Abs(theDevCtlEnt^.dCtlRefNum) - 1, 5)); See Mac Revealed Volume 3 When you use owned resourced owned by DRVR, the F/DA mover will properly move all resources. _________ moof moof