After refering to the analogartist reference, i have copie the simui.menus to my home directory( or work directory), and modify it to add a menu in Tools by add this line ("mytool" ?callback()) in the Tools section of the simui.menus file, but this menu did not turn up when the analogArtist stratup. it seems that the default menus are loaded in ADE. Does anyone know the reason? when i use the command ddGetStartupAll("menus"), the result shows ("~/menu"), i think it is the menu folder which i placed in my home folder. i got quite confused about how to add a user menu in ADE, thanks for explaining this method to me.
by the way, i have load this menu by adding this line "load("~/menu/simui.menus")" in my .cdsinit.
I realised trigerring using the function
envSetVal("asimenv.startup" "sessInitTrigFunc" 'string "triggerScriptLoad")
I just included this line in my .cdsinit file
But even using hiRegTimer up to 20 seconds I could not delete the unnecessary ADE menu item.
is very strange because when I launch ADE after 2-3 second I already
see that this menu item is loaded on the ADE window. But after 20 second
when the delay of my function finishes the response of the following 2
response is: sevHelpMenu1. Which is the name of the "Help" button. But
after that when type same commands in CIW the repsonse is the exact name
of the menu item whic i want to delete.
It seems that this menu item is trigered later than ADe starting.