Although it is undocumented (and thus unsupported and could change in the future), you can use the following:
ENVI> dn=envi_get_display_numbers()
ENVI> print, dn
0
ENVI> envi_disp_pixmap_init, dn, /image, /scroll, /zoom
ENVI> disp_roi_tool_init, dn, hide_window=1, win=win disp_roi_tool_init, dn, hide_window=0, win=win <- displays ROI window
Note: If you do not set the win, then the image window will be set with the ROI "focus" by default. If you set win=3, then the ROI Tool will be set to "off" by default.
|