Path: utzoo!attcan!uunet!mailrus!uwm.edu!zaphod.mps.ohio-state.edu!usc!ucsd!ucrmath!ucrmath.ucr.edu!yakker From: yakker@ucrmath.ucr.edu (matt robinson) Newsgroups: comp.windows.x Subject: Text Widgets (Proper usage) Message-ID: <7791@ucrmath.ucr.edu> Date: 23 Jul 90 19:21:44 GMT Sender: yakker@ucrmath.ucr.edu Organization: University of California, Riverside Lines: 30 I am having some difficulty using the text Widget provided in the Toolkit. Since the Dialog Widget did not offer what I needed, I decided to use a Text Widget to enter the text for the user. Unfortunately, I am running into some problems with using the Text Widget. O'Reilly only offers a few pages of only slightly descriptive information on the Widget, so I am hoping some programmers have a bit more insight on how to use the Widget. 1) While using an asciiStringWidgetClass, whenever I try to input text into the window, my entire window will freeze up, including the buttons and other text windows. I need to input the string into the window, and save the data into a (char *) when I am done. What's the best way to do this with the types asciiText, asciiString, and asciiDisk? 2) When I try to save data using the asciiText widget, how am I supposed to get the data from from widget? How should I initialize the widget so that I can retrieve data from the widget text window? If you have any information on this, I would really appreciate some E-mail, since most of my project (save a few final touches) depend on this. Thanks for your time, in advance. Matt D. Robinson UC Riverside, Systems Programming Group yakker@ucrmath.ucr.edu 3023yakk@ucsbuxa.ucsb.edu