Path: utzoo!attcan!uunet!husc6!bloom-beacon!tut.cis.ohio-state.edu!cs.utexas.edu!sm.unisys.com!csun!fedeva!emcard!stiatl!meo From: meo@stiatl.UUCP (Miles O'Neal) Newsgroups: comp.windows.x Subject: Athena textWidget - accessing text Message-ID: <1545@stiatl.UUCP> Date: 15 Nov 88 21:40:25 GMT Distribution: na Organization: Sales Technologies Inc., Atlanta, GA Lines: 29 I'm pretty sure I remember seeing this question asked a while back but don't recall seeing an answer - altho I was out for a while and it probably was answered. We are running X11r2 on a Sun386i, and do not have all the patches installed (mail to expo keeps bouncing). How do you access the text that has been entered in a text widget? The manual tells you how to replace it, or select it (which is NOT what I want to do). After lots of time with my nose in the source, it seemed the way to do it was via the Read function, e.g. (tw->text.source->Read) (source, start_pos, &text_block, num_chars); which should put the current characters, starting at , from the source in the text widget, into text_block.ptr (actually just return a pointer). This returns me an empty buffer, with text_block.firstPos and txt_block.length set to 0, as well. I also tried using the _XtTextGetText () function, and the entire client just locked down solid; all the buttons quit responding, etc. Even the twm function to kill a client didn't really do it, although the client disappeared from the display; the process kept running until I aborted it. -MileS decvax!gatech!stiatl!meo