PRO gui_refreshPreviews, DATA=data ;;----------------------------------------------------------------------------- ;; PURPOSE: ;; Causes the preview windows to redraw their contents. This assumes that ;; the windows are instances of cwimg_preview ;; ;; CALLING SEQUENCE: ;; gui_refreshPreviews, DATA=data ;; ;; REQUIRED INPUTS: ;; DATA - Array of widget IDs that are the preview windows. ;; ;; OUTPUTS: ;; ;; OPTIONAL INPUT KEYWORDS: ;; ;; EXAMPLE: ;; IDL> gui_refreshPreviews, DATA=data ;; ;; PROCEDURES USED (i.e. called directly!): ;; cwimg_preview_refresh ;; ;; MODIFICATION HISTORY: ;; 2004-09-01 M. Desnoyer Created ;; ;;----------------------------------------------------------------------------- IF size(data, /n_dimensions) EQ 0 THEN n = 1 $ ELSE n = (size(data, /dimensions))[0] FOR i=0, n-1 DO cwimg_preview_refresh, data[i] END