Path: utzoo!utgpu!watserv1!ria!csd.uwo.ca!brown From: brown@csd.uwo.ca (Mike Brown) Newsgroups: comp.windows.x Subject: Multiple Parameters to a Callback Function Keywords: XtAddCallback ClientData Mutiple X11R4 Message-ID: <186@ria.ccs.uwo.ca> Date: 8 Mar 90 23:26:50 GMT Sender: news@ria.ccs.uwo.ca Reply-To: brown@csd.uwo.ca (Mike Brown) Organization: Computer Science Department - Univ. of Western Ontario Lines: 21 We would like to pass multiple parameters to a function that has been registered with XtAddCallback. Normally you can only pass one param which then shows up as client_data. We've tried passing a pointer to an array of parameters (cast to XtPointer), but that failed - the contents are scrambled. We've tried to wrestle with Action Tables, with no success. Are we on the right track? There seem to be no examples in the documentation or the sample code. Any pointers to solutions or running chunks of code would be appreciated. Our current solution of global variables is NOT satisfactory. ------------------------------------------------------------------------------ Mike Brown, Gradual Student in Computer Science, University of Western Ontario brown@csd.uwo.ca "Another day dulling the leading edge of technology...."