Path: utzoo!attcan!uunet!zaphod.mps.ohio-state.edu!sol.ctr.columbia.edu!cica!iuvax!maytag!csg.uwaterloo.ca!giguere From: giguere@csg.uwaterloo.ca (Eric Giguere) Newsgroups: comp.windows.x.motif Subject: Re: XmNcreateCallback -- what is it? Message-ID: <1990Oct22.175623.28528@maytag.waterloo.edu> Date: 22 Oct 90 17:56:23 GMT References: <8125@gollum.twg.com> <901019194247.2541@alphalpha> Sender: daemon@maytag.waterloo.edu (Admin) Organization: Computer Systems Group, U of Waterloo Lines: 17 In article <901019194247.2541@alphalpha> nazgul@alphalpha.com (Kee Hinckley) writes: >> wasn't found. The problem is that Xvt uses an XmNcreateCallback >I find this strange. I can't find an XmNcreateCallback anywhere in 1.1 >either. XmNcreateCallback is a "fake" callback resource used only in UIL files. The problem is that when you specify a widget tree in a UIL file you have no way of mapping actual widgets to resource IDs. So when you retrieve a widget tree using one of the MrmFetch functions, the XmNcreateCallback for each widget will be called, and this is where you can do your widget-to-ID mapping. Just treat it like any other UIL callback, but remember that it doesn't really exist -- you can't try setting it when creating widgets dynamically. This should probably be documented somewhere. -- Eric Giguere giguere@csg.UWaterloo.CA