Path: utzoo!attcan!uunet!husc6!bloom-beacon!EXPO.LCS.MIT.EDU!kit From: kit@EXPO.LCS.MIT.EDU (Chris D. Peterson) Newsgroups: comp.windows.x Subject: Re: help with callbacks Message-ID: <8904181833.AA19748@expo.lcs.mit.edu> Date: 18 Apr 89 18:33:29 GMT References: <4006@ece-csc.UUCP> Sender: daemon@bloom-beacon.MIT.EDU Organization: The Internet Lines: 15 > I want to have a single callback for all of the windows. > My problem, after I have selected the window from the menu, how can I pass > that window id to the callback function. XtAddCallback() takes a generic pointer that is client specified data. This can point to one item, or a structure of items that are specific to this particular callback. This data is then passed to the Callback routine that is called when your menu item is selected. There are many examples of this, one is xman. Xman is on the core R3 distribution in "clients/xman/*". Chris D. Peterson MIT X Consortium