[comp.windows.x] Getting the value of a text widget

swick@ATHENA.MIT.EDU (Ralph R. Swick) (09/28/88)

> Again, an easy question:

Again, an easy answer.

If you allocate storage and pass the string into the Xaw/asciiStringWidget,
it will keep only the pointer to your string, not a copy of the contents of
the string.  Therefore, the data is always available to you.  You can pass
the string pointer to your callback procedure through the client_data argument.