jstravis@athena.mit.edu (John S. Travis) (08/14/89)
Since I'm new to using widgets, I have had trouble working with the fact that a callback can only send one piece of client data. What are the ways around this. A specific case, although general answers would be helpful, is saving a file. If i combine a save button and an editable text widget, how do i have the save function access the filename created, since the save callback already will have the stuff to be saved as the client data. Ideas floating in my head: 1) text widget modifies global variable Filemane (ugly solution!!) 2) use text w to save filename as an ATOM? I don't know much about these, but perhaps better than using a global. 3)????? sorry, if this is a silly question, but i haven't had to share data between widgets very much. Thanks! john travis jstravis@athena.mit.edu
pannaiya@NMSU.EDU (08/15/89)
Since I'm new to using widgets, I have had trouble working with the fact that a callback can only send one piece of client data. What are the ways around this. A specific case, although general answers would be helpful, is saving a file. If i combine john travis jstravis@athena.mit.edu Declare an array of type caddr_t and pass the array as the argument to your callback. PK pannaiya@nmsu.edu