||
(1)添加菜单
PRO my_process_define_buttons, buttonInfo
;compile_opt IDL2
envi_define_menu_button, buttonInfo, $
value = 'My Menu', /menu, $
ref_value = 'Basic Tools', $
/sibling, position = 'after'
envi_define_menu_button, buttonInfo, $
value = 'Option 1', uvalue = 'option 1', $
event_pro = 'my_process_event', $
ref_value = 'My Menu', position = 'last'
END
但文件命名为my_process.pro,放在D:Program FilesITTIDLIDL80productsenvi48save_add路径下。
(2)编写程序my_process_event,同样放在save_add路径下。
Archiver|手机版|科学网 ( 京ICP备07017567号-12 )
GMT+8, 2024-5-12 15:35
Powered by ScienceNet.cn
Copyright © 2007- 中国科学报社