Path: utzoo!attcan!uunet!bloom-beacon!EXPO.LCS.MIT.EDU!kit From: kit@EXPO.LCS.MIT.EDU (Chris D. Peterson) Newsgroups: comp.windows.x Subject: Re: TextWidget - getting text Message-ID: <8910101836.AA17717@expo.lcs.mit.edu> Date: 10 Oct 89 18:36:02 GMT References: <7215@stiatl.UUCP> Sender: daemon@bloom-beacon.MIT.EDU Organization: The Internet Lines: 31 > The following worked for us. > char *GetTextFromScreen (w) [ code deleted. ] Bleh !!! Without being too annoying I would like to urge people not to use this function unless absolutely necessary. It is prone to dister. If you want to retreive all the text from a text widget then just make a GetValues call on the XtNstring resource. If you want to get some subset of the text then take a look at the internal function _XtTextGetText(). This function is much more robust than the one posted to xpert. In any case using the internal text routines will be INCOMPATABLE with the R4 text widget. I have preseved the publicly documented interface, but the internal one has gone through major changes. BTW: Things will be much easier to deal with in R$. I have made many changes to the text widget, and I think the code makes it both easier to use, and more powerful. Chris D. Peterson MIT X Consortium Net: kit@expo.lcs.mit.edu Phone: (617) 253 - 9608 Address: MIT - Room NE43-213