[comp.windows.x] Text Widgets

bil@WHEATIES.AI.MIT.EDU (Bill Rockenbeck) (12/08/87)

  Thanks for the replies concerning Xtk on Suns.  One more thing: Has
anyone out there successfully used the Text widget?  I would very much
like to have an example of how it is supposed to work, before I hack
too much.  It doesn't have to be on a Sun: I'm willing to hack the
server if need be.  Thank you.

			Bill Rockenbeck, MIT Hand Lab

yakker@ucrmath.ucr.edu (matt robinson) (07/24/90)

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