Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!wuarchive!cs.utexas.edu!rice!husc6!bunny!xg00 From: xg00@GTE.COM (Xev Gittler) Newsgroups: comp.windows.x Subject: Xaw Text Widget Question (Scrolling Insert) Keywords: Xaw Text Scroll Message-ID: <8333@bunny.GTE.COM> Date: 16 Feb 90 17:53:56 GMT Organization: GTE Laboratories, Inc., Waltham, MA Lines: 32 I have a text widget that I am trying to place text into. The text in question is a long line, and I would like to be able to insert it and have it wrap, as opposed to running off the edge of the widget. I have the text widget defined as follows: n = 0; XtSetArg (args[n], XtNfromVert, TitleDisplay); n++; XtSetArg (args[n], XtNeditType, XawtextEdit); n++; XtSetArg (args[n], XtNscrollVertical, XawtextScrollAlways); n++; XtSetArg (args[n], XtNwrap, XawtextWrapWord); n++; XtSetArg (args[n], XtNautoFill, True); n++; XtSetArg (args[n], XtNtype, XawAsciiString); n++; XtSetArg (args[n], XtNresize, XawtextResizeWidth); n++; XtSetArg (args[n], XtNstring, ""); n++; TextDisplay = XtCreateManagedWidget ("TextDisplay", asciiTextWidgetClass, ProjectForm, args, n); and I am adding the text with: n = 0; XtSetArg (args[n], XtNstring, ProjectText[List->list_index]); n++; XtSetValues (TextDisplay, args, n); though I also tried XawTextReplace, and that didn't work any better. Any pointers on how I could do this? -- Xev Gittler xev@gte.com