Newsgroups: comp.windows.x
Path: utzoo!utgpu!cunews!bnrgate!bwdls61!bwdls49!jsparkes
From: jsparkes@bwdls49.bnr.ca (Jeff Sparkes)
Subject: Wcl conceptual trouble
Message-ID: <jsparkes.665548362@bwdls49>
Sender: usenet@bwdls61.bnr.ca (Use Net)
Organization: Bell-Northern Research, Ottawa, Canada
Date:  3 Feb 91 02:32:42 GMT

	I'm having a problem with Wcl thats a bit um, difficult to work
around.  
	There are two instances of the problem; I'll start with the simpler
one first.
	
	Wcl programming is done on a callback basis, right?  The problem is
that an Xaw dialog has no callback.  What I really want to do is have a
callback in the OK button which says "call callback X with the value of the
text field".  It would probably be useful in some cases to specify the
"src" widget for the callback.
	This is more generally applicable too.  I have a list widget in
which I select a field; then a command button is clicked which wants to call
a callback with the value of the list widget.
	This seems to require a change in Wcl, to add a function to get the
value of a widget.  This would be something like WcRegisterValueFunction().

	Or have I missed something obvious?

--
Jeff Sparkes jsparkes@bnr.ca	Bell-Northern Research, Ottawa (613)765-2503
Another feature is that the seats float, so that the airline can recover
them if the plane crashes into the ocean. -- Dave Barry
