🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.windows.x
Article #37846

Multiple Parameters to a Callback Function

#37846
From: Mike Brown
Date: Thu, 08 Mar 1990 23:26
21 lines
1312 bytes
  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...."
Technical Details
Message-ID: <186@ria.ccs.uwo.ca>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!watserv1!ria!csd.uwo.ca!brown

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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