Search the FAQ Archives

3 - A - B - C - D - E - F - G - H - I - J - K - L - M
N - O - P - Q - R - S - T - U - V - W - X - Y - Z
faqs.org - Internet FAQ Archives

Motif FAQ (Part 4 of 9)
Section - 89) When I add text to a scrolling text widget, how can I get the

( Part1 - Part2 - Part3 - Part4 - Part5 - Part6 - Part7 - Part8 - Part9 - Single Page )
[ Usenet FAQs | Web FAQs | Documents | RFC Index | Property taxes ]


Top Document: Motif FAQ (Part 4 of 9)
Previous Document: 88) Can you reuse the return value from XtParseTranslationTable?
Next Document: 90) How do I scroll text to display the most recently added
See reader questions & answers on this topic! - Help others by sharing your knowledge
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)


User Contributions:

Comment about this article, ask questions, or add new information about this topic:




Top Document: Motif FAQ (Part 4 of 9)
Previous Document: 88) Can you reuse the return value from XtParseTranslationTable?
Next Document: 90) How do I scroll text to display the most recently added

Part1 - Part2 - Part3 - Part4 - Part5 - Part6 - Part7 - Part8 - Part9 - Single Page

[ Usenet FAQs | Web FAQs | Documents | RFC Index ]

Send corrections/additions to the FAQ Maintainer:
kenton@rahul.net (Ken Lee)





Last Update March 27 2014 @ 02:11 PM