Newsgroups: comp.windows.x.motif
Path: utzoo!censor!geac!tse!cont1
From: cont1@tse.uucp (Contractor #1 = Tim Horton)
Subject: Putting large amount of text into scrolled text widget takes FOREVER
Message-ID: <1990Dec13.172420.28263@tse.uucp>
Reply-To: cont1@tse.UUCP (Contractor #1 = Tim Horton)
Organization: Toronto Stock Exchange
Date: Thu, 13 Dec 90 17:24:20 GMT

Inserting large amounts of text (a few hundred lines) into a text widget
takes forever, because the widget resizes itself once for each line of
text in the data as it goes through it, and, since I have the widget in
a scroll window, the scrollbars get reconfigured and redrawn *each time*.
So to insert 400 lines of text takes from 30 seconds to a minute, (at 5-10
lines/blinks per second).  What am I doing wrong?

I only want to use the XmText widget to ouput (selectable) text.  I know
I can display the text to the user in no time flat, with a drawing area
widget, but then I loose the selection mechanism.

I'm using Motif 1.0 under SCO.   I use XtSetValues on XmNvalue to replace
the text.

THANKS!

uunet!jtsv16!geac!tse!cont1
(not always reliable)
   or
tjhorton@cs.toronto.edu
(whichever is simpler for you)
