Newsgroups: comp.windows.x.motif Path: utzoo!censor!geac!tse!cont1 From: cont1@tse.uucp (Contractor #1 = Tim Horton) Subject: inserting large string into popped up text widget ... goes nuts Message-ID: <1991Jan3.022240.13828@tse.uucp> Sender: cont1@tse.uucp Reply-To: tjhorton@vis.toronto.edu Organization: Toronto Stock Exchange Date: Thu, 3 Jan 91 02:22:40 GMT Is there any way to avoid this? ... In motif 1.0, if a text widget is popped up, and I set it's string value to something relatively long, it *slowly* *gracelessly* resizes itself to accomodate the string. For example, a scrolled text widget will go through the string value from top to bottom, figuring out the number of lines and the size of each line, and after *each* line it resets/redraws the scrollbars (or rather, the scrolling widget around the text widget gets a resize notification from the text widget after each line is processed, causing the scrollbars to be reset/redrawn each time). Anyways... THIS IS RIDICULOUS. From time to time I have a 400 line chunk of text to stuff in. The behavior looks ridiculous, it takes a *minute* or so, and meanwhile the application is basically hung. The code: XmTextSetString(myTextWidget, bigString); /* wow! */ Does this seem slightly bizarre to anyone else but me? Is it time for me to turn in my .Xdefaults, for good? Is there really a higher bitplane? When you can't have X anymore, is there anything left to life? For these and other answers, thanks in advance, tjhorton@vis.toronto.edu (alias cont1@tse.uucp)