Path: utzoo!utgpu!watmath!att!tut.cis.ohio-state.edu!cs.utexas.edu!csd4.csd.uwm.edu!uxc.cso.uiuc.edu!tank!ncar!redcloud!clyne
From: clyne@redcloud.ucar.edu (John Clyne)
Newsgroups: comp.windows.x
Subject: help
Message-ID: <3982@ncar.ucar.edu>
Date: 14 Aug 89 23:10:24 GMT
Sender: news@ncar.ucar.edu
Reply-To: clyne@ncar.ucar.edu.UUCP (John Clyne)
Organization: Scientific Computing Division/NCAR, Boulder CO
Lines: 25

This should not be too hard to do but I haven't been able to figure out
a simple solution: I want to have a generic warning routine, call it
display_warning(), that when invoked will popup and display a warning message
(under the Xt instrinics) and require the user to select a proceed or 
cancel button. The problem
is that I want display_warning() to return a value depending on the 
user's selection. How do I get display_warning() to wait until a selection
has been made before returning?. display_warning() also needs to know
which selection has been made and indicate this in the return. Is there
a simple way to due this?

thanks much - jc 


	John Clyne 	(clyne@ncar.ucar.edu)
	c/o
	National Center for Atmospheric Research
	P.O. Box 3000
	Boulder, Colorado 80307
	(303) 497-1236

	
		%%% Its a small world. But I wouldn't want to paint it %%%
						S. Wright
		%%%						       %%%