In the examples ITT Vis provides of ENVI/IDL programming, there is a
function called user_ev.pro (pasted below). There's a function called
WIDGET_ENVI_LAB that is not a part of ENVI or IDL's help menu. Does
anyone know what it does? Thanks.
; *******************************************************
; This routine is an example of an auto-managed compound
; widget. This widget prompts the user for a long integer
; and an output filename.
;
; For more information see the ENVI Programmer's Guide.
; *******************************************************
; Copyright (c) 1995-2010, ITT Visual Information Solutions. All
; rights reserved. Unauthorized reproduction is prohibited.
; *******************************************************
pro user_ev, ev
envi_select, title='User Input File', fid=fid, dims=dims, pos=pos
if (fid eq -1) then return
envi_file_query, fid, data_type=data_type
base = widget_auto_base(title='User Parameters')
wl = widget_envi_lab(base, fid=fid, dims=dims, pos=pos)
sb = widget_base(base, /row, /frame)
wp = widget_param(sb, prompt='User Value', dt=3, $
uvalue='value', /auto)
sb = widget_base(base, /row, /frame)
wf = widget_outfm(sb, uvalue='outf', /auto)
result = auto_wid_mng(base)
if (result.accept eq 0) then return
value = long(result.value)
; Now the processing routine would be called
end
|