Path: utzoo!attcan!uunet!cs.utexas.edu!rutgers!tut.cis.ohio-state.edu!purdue!bu-cs!bloom-beacon!EXPO.LCS.MIT.EDU!converse From: converse@EXPO.LCS.MIT.EDU (Donna Converse) Newsgroups: comp.windows.x Subject: Re: Problem with widgets Message-ID: <8906201843.AA05229@expo.lcs.mit.edu> Date: 20 Jun 89 18:43:45 GMT References: <6642@sdcsvax.UCSD.Edu> Sender: daemon@bloom-beacon.MIT.EDU Organization: X Consortium, MIT Laboratory for Computer Science Lines: 29 > I am trying to create a dialog widget and can get > it to work if I use the following. [dialog label and value resources set with the XtSetArg macro] > If I do it the following way all I get is the title with > no text field. [same resources set to same values using a statically initialized argument list.] To have the dialog box include an area into which the user types input, the value of the dialog resource XtNvalue must be non-NULL. I cannot explain why, nor duplicate, specifying XtSetArg ( arg[1], XtNvalue, 0 ); and getting a dialog box with an editable text area. If you want the initial string displayed in the text area to be the empty string, specify XtSetArg( arg[1], XtNvalue, ""); or the equivalent in static form. This question may have fell through the cracks -- I'm sure others could have posted an answer earlier. Donna Converse converse@expo.lcs.mit.edu