I recycled an old program from DOS days and created a tcl prog which reads a script file at startup and present this as hierarchical menus. I need this to work on several inhomogenous systems where the icons where here and there and everywhere and nowhere, and I need a way to quickly run things.
Every menu item could be a complete tcl script, with some restrictions and some helper routines like "select" or "msgbox".
Example of a dialog screen with an open sub selection menu:
Some words to some of the functions and keys:
__________________________________________________________________________________________
The programm loads all files *.mnu
unless other dir(s) specified with command line switch --mnuDir.
Those .MNUs can initially contain only a very limited set of commands:
menu title code ?condition? app title ?code? ?condition? @startmenu
(...to be continued...)
Additionally, the file(s) (progDir)/*.mak are sourced only once at program load time. They could contain almost any tcl command, and are not intended to be edited by an end user. An internal standard.mak is always sourced out of the program's internal VFS. It contains some usefull procs, like
start what askExec what cmd2file cmd ?ext? address addr cmd tempName makeAndStartICAFile dest ?type? ?dom? readFile file :
and some more which are probably too specific and not of common interest (they will be removed in future releases).
No categorie so far.