Path: utzoo!attcan!uunet!ginosko!gem.mps.ohio-state.edu!apple!bloom-beacon!EXPO.LCS.MIT.EDU!kit From: kit@EXPO.LCS.MIT.EDU (Chris D. Peterson) Newsgroups: comp.windows.x Subject: Re: how do I get output from an athena text widget? Message-ID: <8910101906.AA18598@expo.lcs.mit.edu> Date: 10 Oct 89 19:06:38 GMT References: <2705@zaphod.axion.bt.co.uk> Sender: daemon@bloom-beacon.MIT.EDU Organization: The Internet Lines: 20 > Once I've got an editable text widget with some text in it, how do I get > this text out, either to a file or to a buffer? When you create a text widget you must pass it an allocated string as the XtNstring resource, and a length of this buffer. The R3 Text widget uses this string in place, so you can just reference this string pointer to get the text out of a text widget. You may also be able to use XtGetValues on the XtNstring resouces to get the string pointer. CAUTION: Do not modify this buffer, the text widget keeps internal state and modifying its buffer will really confuse the text widget. Chris D. Peterson MIT X Consortium Net: kit@expo.lcs.mit.edu Phone: (617) 253 - 9608 Address: MIT - Room NE43-213