Please enable JavaScript to view this site.

A-Shell Reference

;Add a separator bar to File menu:

FILE,"fs1",SEP

;Add item to "Select Source" (implemented my launching another

;  instance of A-Shell)

; (Note -e for auto exit)

FILE,"Select Source...",CMD,"$ASHELL -e run selsrc"

 

;Next, add a new top level menu called "Tools"

TOP,"&Tools",SUB

 

;Add a calculator and a website link to it...

"&Tools","Calculator",CMD,"calc.exe"

"&Tools","Web Search",REG,"http://www.google.com"

 

;Add a separator and two PDF document files to Help menu

HELP,"fs2",SEP

HELP,"User Guide",REG,"UserGuide.pdf"

HELP, "Troubleshooting Reference",REG,"TroubleRef.pdf"

 

If an error occurs, the operation will abort at that point, which should hopefully help you pinpoint the cause.

It is usually necessary to delete menus in the reverse order from the way they were added (in order to avoid the confusion caused by later menus changing position due to the deletion of earlier ones). The simplified method takes care of this difficulty for you, but only within a single MDF file. If you use multiple MDF files and want to be able to delete them independently of each other, you should not have more than one MDF file add menu items to the same top level submenu, and you will need to refer to the top level submenus by name rather than number.

See the sample program ASMENU.BAS in EXLIB:[908,35] for more details.