Path: utzoo!censor!geac!jtsv16!uunet!cs.utexas.edu!tut.cis.ohio-state.edu!ucbvax!bloom-beacon!EXPO.LCS.MIT.EDU!kit From: kit@EXPO.LCS.MIT.EDU (Chris D. Peterson) Newsgroups: comp.windows.x Subject: Re: Translation Table Function Manipulation Message-ID: <8911272054.AA06151@expo.lcs.mit.edu> Date: 27 Nov 89 20:54:24 GMT References: <6113@merlin.usc.edu> Sender: root@athena.mit.edu (Wizard A. Root) Organization: The Internet Lines: 20 > We would like to pass our structure into a Translation Table Function > in addition to the widget name and event. As an example, insert-char(): The problem of accessing program data from an action routine is an annoying one, to which there is no "clean" solution. I tend to use the X Context manager to work around the problem by assigining data to the window of a widget, and then retreiving this data from the action routine, since I have the widget (and window) ID in the action routine I can associate unique data with each widget in my application. The Context manager is described in Scheifler, Gettys and Newman in section 10.12. Chris D. Peterson MIT X Consortium Net: kit@expo.lcs.mit.edu Phone: (617) 253 - 9608 Address: MIT - Room NE43-213