Path: utzoo!attcan!uunet!husc6!bloom-beacon!gatech!udel!rochester!pt.cs.cmu.edu!andrew.cmu.edu!rj0z+ From: rj0z+@andrew.cmu.edu (Robert George Johnston, Jr.) Newsgroups: comp.sys.mac.programmer Subject: Custom DefProcs in DAs Message-ID: Date: 10 Oct 88 03:48:17 GMT Organization: Carnegie Mellon Lines: 21 I have written a couple of custom definition procedures that I need to use in a Desk Accessory, specificially, a couple of CDEFs and a LDEF. Since these resources must follow the DA around, I have given the xDEFs the required IDs so they would belong to the DA. This causes a small problem, because the procedures NewControl, and LNew are expecting conventional resource IDs. I tried to compute the resource ID of the xDEFs and get handles to them, lock them down, and throw them into the ContrlDefProc fields of the control records. This does not work. So, I tried setting the SysHeap attribute of each of the resources. This also did not work. When the program tries to draw the lists, I get a SystemError of ID 3 or 12. Any ideas of what I need to do? Thank you. Rob Johnston.