Path: utzoo!attcan!uunet!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!usc!snorkelwacker!bloom-beacon!EXPO.LCS.MIT.EDU!converse From: converse@EXPO.LCS.MIT.EDU (Donna Converse) Newsgroups: comp.windows.x Subject: Re: dialog widget default string Message-ID: <9005301409.AA19909@expo.lcs.mit.edu> Date: 30 May 90 14:09:39 GMT References: <73114@srcsip.UUCP> Sender: daemon@athena.mit.edu (Mr Background) Organization: X Consortium, MIT Laboratory for Computer Science Lines: 17 > I very simply want a dialog widget in which I can set the default string > (resource value) to what I please. Each time one pops up the dialog widget, > the previously inputted value appears. > ... [edited] ... > Does anyone know how to set this resource? The Athena Dialog widget's user input area, or "string", is implemented by an AsciiText widget whose name is "value". You can use XtNameToWidget to get the widget ID of the child of the dialog whose name is "value". Then, use XtSetValues to set the string resource of that widget. If you want the input area to appear blank, set the string resource to the empty string "" before popping up the dialog box. Donna Converse converse@expo.lcs.mit.edu