Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!cs.utexas.edu!usc!bloom-beacon!athena.mit.edu!jstravis From: jstravis@athena.mit.edu (John S. Travis) Newsgroups: comp.windows.x Subject: TextWidget Summary: How do i get info from it? Keywords: HP widgets, Young example Message-ID: <14341@bloom-beacon.MIT.EDU> Date: 16 Sep 89 16:08:13 GMT Sender: daemon@bloom-beacon.MIT.EDU Reply-To: jstravis@athena.mit.edu (John S. Travis) Organization: Massachusetts Institute of Technology Lines: 18 Hello again. I'm using Doug Young's one_line text widget code and am having some trouble. I set up the widget this way: strcpy(file_hack_ptr->filename,"test"); XtSetArg(wargs[0],XtNeditType,XwtextEdit); XtSetArg(wargs[1],XtNstring,file_hack_ptr->filename); textwidget = create_one_line_text_widget("edit",rowcol,wargs,2); I'm using this so that someone can enter in a filename for save/read operations. Now the widget pops up with "test" in it. I can modify it, but when I access file_hack_ptr->filename in say a fopen statement it is still "test". Is file_hack_ptr->filename merely copied into the widget. I though i was actually modifying the string itself? How do I do that, b/c that's what i want. Thanks John Travis jstravis@athena.mit.edu