loganj@yvax.byu.edu (04/29/91)
I am using XmCreateScrolledText to create a scrolling text widget. However, the slider is stuck at the top of the scrollbar. I can move it with the mouse, but I cannot move it programmatically. What I would like to do is add text at the end and have the last line of the added text always visible. Setting the XmNautoShowCursorPosition to True should do the trick, but does not. I have also tried using XtParent to get the parent XmScrolledWindow widget. Then I get its XmNverticalScrollBar child widget. I then use XtGetValues to get the XmNmaximum and XmNsliderSize, and then set its XmNvalue to maximum-sliderSize. The resource values for minimum, maximum, sliderSize and value seem reasonable both before and after setting the new value, and the value does indeed change, but the slider does not move. Any solutions or hints would be appreciated. I am using Motif 1.03 under Ultrix 3.1 on a DECstation 3100. I understand that Ultrix 3.1 provides an X11R3.5 server. ============================================= thomas@bach.cs.byu.edu Thomas McNeill Computer Science Department Brigham Young University Provo, UT 84602 (801) 378-4009 (office) (801) 378-7775 (lab) =============================================