Path: utzoo!attcan!uunet!ncrlnk!ncrcae!hubcap!gatech!bloom-beacon!mit-vax!rgcote From: rgcote@mit-vax.LCS.MIT.EDU (Rob Cote) Newsgroups: comp.windows.x Subject: Text widget problems (bugs??) Message-ID: <5327@mit-vax.LCS.MIT.EDU> Date: 16 Dec 88 23:58:19 GMT References: <272@compel.UUCP> <8812162137.AA16723@trix.ai.mit.edu> Reply-To: rgcote@mit-vax.UUCP (Rob Cote) Organization: MIT Laboratory for Computer Science, Cambridge Lines: 31 I am having problems with the Athena text widget. I have tried a number of different ways of trying to get the text widget to perform according to the "X Toolkit Athena Widgets -- C Language Interface" document, but it doesn't. The first problem is that the following code (I have omitted obvious things like setting argn to zero. This is just a sample.): XtSetArg(arg[argn], XtNtextOptions, scrollVertical); SummaryWindowText = XtCreateManagedWidget("MyWidget", asciiStringWidgetClass, toplevel, arg, argn); does *not* create a widget with a vertical scrollbar. The documentation states that: "scrollVertical Puts a scroll bar on the left side of the window." It just creates a standard text widget. Also, the textoption scrollOnOverflow claims to "automatically scroll text up when new text is entered below the bottom (last) line." I am trying to turn this off. I create a text widget and look at the textoptions value. It is 0, meaning none of the options are set. Yet when I do a XtTextReplace and there is no more room in the window, it scrolls the text up and performs the insert instead of not performing the insert at all. I asked an X consortium person (face to face) whether I could turn this off and he said no. The text widget won't let you. Why does this text option exist if it isn't really an option?? An email response is preferred. Thanks for any help rendered.-- and none of this of course will stand when I stand before the man on that great day of the great divide when all the kings and queens will have their closets emptied and the bones them bones them dry bones will not fail dead men will tell tales and you can laugh I can laugh we can laugh but its not funny -the 77s