Hello.
I'm trying to add a function to ENVI that enables me to load a 3rd party file type.
Currently the script I have works fine, but only if I load ENVI with the "ENVI + IDL 4.5" icon. If I try loading IDL without IDL then the menu item does not appear.
The script is saved as a .pro file, which I think may be the problem. However, if I try saving as a .sav file (using 'save, /ROUTINES, 'chipstoenvitiff4_define_buttons', 'chipstoenvitiff4', FILENAME = 'D:\Program Files\ITT\IDL70\Products\envi45\save_add\chipstoenvi.sav' ) then the menu button doesn't appear, no matter what method I use to load ENVI.
If someone could explain what I've done wrong here then that'd be superb.
Simon.
If it's useful, my define buttons function is as below:
pro chipstoenvitiff4_define_buttons, buttonInfo
compile_opt idl2
envi_define_menu_button, buttonInfo, value = 'CHIPS', $
event_pro='chipstoenvitiff4', POSITION=1, ref_value = 'Generic Formats', uvalue='CHIPS'
end
|