Version 4 of Simple Program Menu

Updated 2008-06-23 13:58:34 by MHo

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:

http://home.arcor.de/hoffenbar/prog/menue.jpg

Some words to some of the functions and keys:

  • <Return> starts the selected item, that is: going down in the hierarchy or exec'ing the underlying commands.
  • <Hotkey> locates and starts the first matching item (top down). Hotkeys are not shown so far.
  • <.> goes on level up in the hierarchy.
  • </> goes to the root menu.
  • <F3> shows the commands behind the current item.
  • <F5> reloads the menu-definition files.

__________________________________________________________________________________________

The programm loads all files *.mnu

  1. in the current directory
  2. in the program directory

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.


No categorie so far.