pro qBar_Print, state, event

@compile_opt.pro		; On error, return to caller

;+
; NAME:
;	qBar_Print
; PURPOSE:
;	Print current qBar display
; CATEGORY:
;	Widget qBar
; CALLING SEQUENCE:
;	qBar_Print, state
; INPUTS:
;	state			array[1]; type: structure
;						qPlot state structure
; OUTPUTS:
;	(hardcopy or EPS file)
; CALLS:
;	qset_page, qBar_Redraw, get_page
; PROCEDURE:
;	Call qset_page to set up output device.
; MODIFICATION HISTORY:
;	FEB-2000, Paul Hick (UCSD/CASS; pphick@ucsd.edu)
;-

widget_control, event.handler, sensitive=0

qset_page, status=status

if status then begin
	qBar_Redraw, state
	get_page
endif

widget_control, event.handler, /sensitive

return  &  end
