Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!cs.utexas.edu!tut.cis.ohio-state.edu!pt.cs.cmu.edu!sam.cs.cmu.edu!cc From: cc@sam.cs.cmu.edu (Chiun-Hong Chien) Newsgroups: comp.windows.x Subject: Widget questions Keywords: dialogWidget Message-ID: <8037@pt.cs.cmu.edu> Date: 17 Feb 90 18:08:54 GMT Organization: Carnegie-Mellon University, CS/RI Lines: 23 I am trying to create multiple x-windows (xterms) from a program for printing-out/reading-in different types of messages (e.g. warning message, error message, standard I/0). I think X toolkit Widgets will do the job I need. So I decided to use textWidgets and dialogWidgets. As a beginning of the Widget user, I am not sure how to use dialogWidgets. What I need is to "gets" a string into a buffer when the string is typed into the dialog window along with a carriage return (just like a regular gets() does). I understand that I may be able to use XtDialogGetValueString, but I don't know how the Xserver can inform the dialog Widget that the string has been typed in. I tried to use the client callback interface, but couldn't find the appropriate resourse in the dialog resource database listed in the X11/R3 X Toolkit Athena Widgets Manual (yes, I am still using X11/R3). Could anybody tell me how do use dialogWidgets to achieve what I need? Of course I would also appreicate if anybody could show me a better way to achieve what I need (i.e. using multiple windows for various messages in a program) using something other than textWidget and dialogWidget. Thanks in advance. Chien (cc@sam.cs.cmu.edu)