; Copyright (c) 1998-2000 A.P. Hitchcock  All rights reserved 
;+ 
;NAME: 
;	AX_WAIT 
; 
;LAST CHANGED: ----------------------------------- 01-jan-00 
; 
;PURPOSE: 
;	This procedure turns on or off the widget_event hourglass 
; widget_event(hourglass=0)  does not seem to work !! 
; 
;CATEGORY: 
;	STAND ALONE: utility 
; 
;CALLING SEQUENCE: 
;	AX_WAIT, OFF = off 
 
;INPUTS: none 
; 
;KEYWORDS: 
;	OFF - turn off if 1, turn on if 0 
; 
;MODIFICATION HISTORY: 
; (19-sep-99 aph) first written to avoid persistent hourglass 
; (01-jan-00 aph) AXIS standard documentation 
;- 
pro ax_wait, OFF = off 
 
if keyword_set(off)then begin 
	test = widget_event(long(0), bad_Id=badid, /nowait) 
endif else widget_control,/hourglass 
 
end 
