pro qView_UpdateFiles, state @compile_opt.pro ; On error, return to caller ;+ ; NAME: ; qView_UpdateFiles ; PURPOSE: ; Called by qView_Event to process messages from the ; state.frstfile, state.lastfile and state.incrfile widgets. ; CATEGORY: ; Widget qView ; CALLING SEQUENCE: ; qView_UpdateFiles, state ; INPUTS: ; state array[1]; type: structure ; qView state structure ; OUTPUTS: ; (to widgets) ; CALLS: ; qView_ImageInfo, qView_Sensitive ; PROCEDURE: ; Processes messages from state.wid_frst, state.wid_last and state.wid_incr widgets. ; STATE INFO USED: ; widget_control, state.wid_pick , get_uvalue=allfiles, /no_copy ; STATE INFO MODIFIED: ; widget_control, state.wid_pick , set_uvalue=allfiles, /no_copy ; MODIFICATION HISTORY: ; JAN-1999, Paul Hick (UCSD/CASS) ; FEB-2000, Paul Hick (UCSD/CASS; pphick@ucsd.edu), complete overhaul ;- tmp = qView_ImageInfo(state, /number, /active) widget_control, state.wid_pick, get_uvalue=allfiles, /no_copy widget_control, state.wid_select, set_value='(Total of '+ $ strcompress(tmp[0],/rem)+'/'+strcompress((size(allfiles,/dim))[0],/rem)+' files)' widget_control, state.wid_pick, set_uvalue=allfiles, /no_copy tmp = qView_UpdateActive(state, value=tmp[1]) qView_Sensitive, state, /get_data return & end