[comp.windows.x] How to make the HP textEdit widget scrollable?

po@cs.utexas.edu (Po Ling Cheung) (10/23/88)

I have problem in making the HP textEdit widget works like
the Athena asciiString widget with a vertical scrollbar.

By making the textEdit widget a child of a scrolledWindow widget,
and setting XtNforceVerticalSB to TRUE, I obtained a vertical
scrollbar.  But the size of the slider is fixed and only depends
on the height ratio between the two widgets (assuming XtNgrow is
XwGrowOff).  If the textEdit widget is larger than the scrollWindow 
widget, the former is clipped.  Lines entered at the bottom of the 
screen does not automatically get scrolled.  (The user has to do
the scrolling.)

I have also tried setting XtNscroll to XwAutoScrollVertical, 
XtNgrow to XwGrowVertical, varying the heights of the widgets,
and some combination of the above, but failed to get a scrollable
textEdit widget that works as expected.

Any idea?

Thanks,
  Po	( po@cs.utexas.edu )