Path: utzoo!mnetor!tmsoft!torsqnt!news-server.csri.toronto.edu!cs.utexas.edu!samsung!usc!srhqla!quad1!carl From: carl@quad1.quad.com (Carl Priddy) Newsgroups: comp.windows.x.motif Subject: Re: XmText and arbitrary text additions Summary: adding to the text widget Keywords: Motif, XmText Message-ID: <13981@gouda.quad.com> Date: 11 Jul 90 17:08:18 GMT References: <861@airgun.wg.waii.com> Organization: Quadratron Systems Inc, Thousand Oaks Ca Lines: 14 It is the programmers responsibilty to maintain a copy of the text which he initially sets as the XmNvalue resource of the text widget. The text widget makes a copy of it which it then uses for it's own editing. The text widget callback routines can be used to fetch a copy of the (possibly) modified text. If you wish to edit the text yourself (you being programmer), then do so with your internal version, and use XtSetValues to redefine the XmNvalue resource of your text widget. Hope this helps. FYI, I have just finished writing an X/Motif word processor, and ended up using the DrawingArea widget and doing my own scrolling, etc. becuase the Text widget apparently carries with it a LOT of overhead. carl priddy QSI (Quadratron Systems, Inc)