Parent document is top of "Motif FAQ (Part 4 of 9)"
Previous document is "102) How can I replace characters typed with say a `*'? I want to"
Next document is "104)+ How can I get the correct colors for scrolled text widget"
103) How can I best add a large piece of text to a scrolled text
widget?
[Last modified: Sept 94]
[NOTE: This problem is probably only relevant for Motif 1.0 which probably no
one is using anymore. If you know this to still be a problem, send mail to
ksall@cen.com. I'll probably remove this question otherwise.]
In some versions of Motif 1.0 even using XmTextSetString, it insists on adding
the text one line at a time, adjusting the scroll bar each time. It looks
awful and is slow.
Answer: If you don't have this problem, use XmTextSetString to set all of the
text in the widget. If you do have this slowdown problem even using
XmTextSetString, unmanage the widget, add the text and then manage it again.
This may cause the window to blink, but you have to put up with that or switch
to a different version of Motif.
Parent document is top of "Motif FAQ (Part 4 of 9)"
Previous document is "102) How can I replace characters typed with say a `*'? I want to"
Next document is "104)+ How can I get the correct colors for scrolled text widget"