Path: utzoo!utgpu!watmath!att!ucbvax!tut.cis.ohio-state.edu!bloom-beacon!EXPO.LCS.MIT.EDU!kit From: kit@EXPO.LCS.MIT.EDU (Chris D. Peterson) Newsgroups: comp.windows.x Subject: Re: AsciiString Widgets Message-ID: <8908081551.AA04759@expo.lcs.mit.edu> Date: 8 Aug 89 15:51:41 GMT References: <8908031806.AA00759@chartres.mcs.anl.gov> Sender: daemon@bloom-beacon.MIT.EDU Organization: The Internet Lines: 21 > I am currently using an AsciiString widget in my application and want to read > the text from the widget. There is no need to complicate this by using selections. Just us XtGetValues() to retrieve the entire string and then you can index into the string at the position that you are interested in directly. > If I use XtTextSetSelection it highlights the text but does not move it into > buffer 0. This is correct XtTextSetSelection() only sets the primary selection, it makes no changes to Cut Buffer 0. Chris D. Peterson MIT X Consortium Net: kit@expo.lcs.mit.edu Phone: (617) 253 - 9608 Address: MIT - Room NE43-213