glasgow-jason@CS.YALE.EDU (Jason R. Glasgow) (05/05/89)
I am getting strange results from the scroll bar when I use this widget. As I drag the thumb it changes sizes even though the number of lines of text doesn't change. It also lets the thumb practically disappear if I pull it to the bottom of the scroll bar region. Is this a bug in the AsciiTextWidget or my error in creating the widget? Does anyone have any info on this? I have included the code I use to create the textwidget.... Thanks for any help. Jason Glasgow /* TEXT AREA */ n = 0; XtSetArg(arg[n], XtNwidth, 500); n++; XtSetArg(arg[n], XtNheight, 300); n++; XtSetArg(arg[n], XtNstring, textBuffer); n++; XtSetArg(arg[n], XtNeditType, XttextEdit); n++; XtSetArg(arg[n], XtNlength, 20480); n++; XtSetArg(arg[n], XtNtextOptions, wordBreak | scrollVertical); n++; XtSetArg(arg[n], XtNsensitive, True); n++; text = XtCreateManagedWidget("text", asciiStringWidgetClass, pane, arg, n); +----------------+----------------------------------------------------------+ | Jason Glasgow | bitnet: glasgow@yalecs.bitnet uucp: ...!yale!glasgow | | | internet: glasgow@cs.yale.edu voicenet: 203-436-1437 | +----------------+----------------------------------------------------------+
swick@ATHENA.MIT.EDU (Ralph R. Swick) (05/05/89)
> I am getting strange results from the scroll bar when I use this > widget. As I drag the thumb it changes sizes even though the number of > lines of text doesn't change. It also lets the thumb practically > disappear if I pull it to the bottom of the scroll bar region. Is this > a bug in the AsciiTextWidget or my error in creating the widget? Bugs in the widget. The scrollbar is actually counting characters, not lines. It should also not let you scroll off the bottom.