From: CRDGW2::CRDGW2::MRGATE::"SMTP::CRVAX.SRI.COM::RELAY-INFO-VAX" 2-MAY-1991 23:48:42.95 To: ARISIA::EVERHART CC: Subj: DCL_MENU posted to VMSNET.SOURCES From: RELAY-INFO-VAX@CRVAX.SRI.COM@SMTP@CRDGW2 To: Everhart@Arisia@MRGATE Received: by crdgw1.ge.com (5.57/GE 1.97) id AA25300; Thu, 2 May 91 23:27:27 EDT Received: From UCBVAX.BERKELEY.EDU by CRVAX.SRI.COM with TCP; Thu, 2 MAY 91 17:44:40 PDT Received: by ucbvax.Berkeley.EDU (5.63/1.42) id AA18755; Thu, 2 May 91 17:35:02 -0700 Received: from USENET by ucbvax.Berkeley.EDU with netnews for info-vax@kl.sri.com (info-vax@kl.sri.com) (contact usenet@ucbvax.Berkeley.EDU if you have questions) Date: 2 May 91 16:49:35 GMT From: mcsun!ukc!slxsys!ibmpcug!keith@uunet.uu.net (Keith Brown) Organization: The IBM PC User Group, UK. Subject: DCL_MENU posted to VMSNET.SOURCES Message-Id: <1991May2.164935.20355@ibmpcug.co.uk> Sender: info-vax-request@kl.sri.com To: info-vax@kl.sri.com I'm posting a revision of my DCL_MENU SMG/FORTRAN based menu command to VMSNET.SOURCES. I can't promise to fix bugs/add enhancements, but I'd appreciate comments on the usefulness or otherwise of the progs and will endeavour to respond with fixes/enhancements. Abstract ======== RUN_MENU[/qualifiers] [filename] Displays a scrolling menu on the screen and allows the user to select from it by moving the cursor and pressing . The cursor may be moved by :- - pressing the arrow keys or - entering the first letters (first match is taken) of a choice and pressing , or or or any arrow key Pressing or PF2 displays help text on the current item. When an item has been selected :- a) its number can be returned to a DCL symbol and/or b) the item text can be returned to a DCL symbol and/or c) an associated 'action term' can be returned to a DCL symbol in addition either a) an associated 'action term' can be executed in a subprocess as a DCL command (after which the menu is redisplayed) or b) an associate 'action term' can be executed as a DCL command (the menu is not redisplayed) Changes Since Previous Version ============================== -Menu entries may indirect to another file (which may indirect ...) -Menu entries may be translations of logical names and/or symbols These changes allow a single menu file to present different options according to the values/presence of files/logical names/symbols -The display of filenames from the /FILES qualifier has been improved to suppress display of constant portions of the filespec. This default behaviour can be overridden by added qualifiers. -A 'Block' mode display has been added (=matrix in which each element takes the same space). -The .CLD command definition is compiled to a .OBJ file and linked with the Fortran, so that the command doesn't need to be added to the DCL command tables. -We've changed the DCL command from MENU (which users, reasonably, expected to actually display a menu) to RUN_MENU. +-------------------------------------------+-----------------------------------+ | Keith Jewell | Telephone: (0386)840319 ext.222 | | Head of Mathematics & Computing Sciences | Telex: 337017 | | Campden Food & Drink Research Association | Fax: (0386)841306 | | Chipping Campden | Email: keith@ibmpcug.CO.UK | | Gloucestershire GL55 6LD | | | England | | +-------------------------------------------+----------------------------------+ |No responsibility accepted for anything. Read what I write, use what I give | | at your own risk | +------------------------------------------------------------------------------+ -- Automatic Disclaimer: The views expressed above are those of the author alone and may not represent the views of the IBM PC User Group. --