Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!rutgers!gatech!purdue!bu-cs!bloom-beacon!athena.mit.edu!jstravis From: jstravis@athena.mit.edu (John S. Travis) Newsgroups: comp.windows.x Subject: Widget's access to data Message-ID: <13477@bloom-beacon.MIT.EDU> Date: 14 Aug 89 14:52:07 GMT References: <12086@orstcs.CS.ORST.EDU> Sender: daemon@bloom-beacon.MIT.EDU Reply-To: jstravis@athena.mit.edu (John S. Travis) Organization: Massachusetts Institute of Technology Lines: 19 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