Parent document is top of "Motif FAQ (Part 4 of 9)"
Previous document is "97) Can you reuse the return value from XtParseTranslationTable?"
Next document is "99) How do I scroll text to display the most recently added"
98) When I add text to a scrolling text widget, how can I get the
new text to show?
[Last modified: Sept 94]
Answer: Use the (fully supported) function XmTextShowPosition:
void XmTextShowPosition(w, position)
Widget w;
XmTextPosition position;
where the position is the number of characters from the beginning of the
buffer of the text to be displayed. If you don't know how many characters are
in the buffer, use XmTextGetLastPosition.
position = XmTextGetLastPosition(w)
Parent document is top of "Motif FAQ (Part 4 of 9)"
Previous document is "97) Can you reuse the return value from XtParseTranslationTable?"
Next document is "99) How do I scroll text to display the most recently added"