;-----------------------------------------------------------------------------
; PULLDWN.DEF file for syntax example.   PULLDWN v.5 (c) /\/\icroDynamics
; 1989  1445 Mensch Lane, Gilbertsville, PA  19525  Reg. $15
; BBS HST 14,400 DS (215)-367-4053
;
; This is the ACTUAL menu as it is setup on my system for demo purposes.
;
;-----------------------------------------------------------------------------
;
;  ; - Anything the the menu system does not understand will be ignored,
;      but ; denotes a clear comment.
;
;  DEF keyword delimits the TOP ROW menu cuts.  As outlined
;
;  %   Title.  If the first under a DEF (Max. 7 DEF @ 70 CHAR TOTAL) defines
;      the MAIN title.... afterward subordinate titles.
;
;  %-  Defines a draw line.  COUNTS AS A TITLE toward the 20 MAX under each
;
;  HI=xx  Tells the menu system which letter to highlight... default is the
;         first letter of the menu pick..... INVALID on the top line.
;
;  +  Batch commands for a selection.  See documentation on maximums.  No
;     practical limit to the number under each.
;
;  Leading AND trailing blanks ignored.  Case sensitive.  Be SURE DEF is caps.
;-----------------------------------------------------------------------------
;=============================================================================
DEF
% Applications
; This would be the top line.  NO HI= allowed.  First letter is it.
; Of course, no "+" batch commands make any sense UNLESS it is the ONLY ONE
; on the line.  i.e. no subordinate selections!!!!
;
%Lotus 1-2-3 v2.01
HI=0
; Note the highlight postion 0 is the first character!  Spaces count?????????
+echo off
+cls
+c:
+cd\lotus
+123
+pulldwn.bat
; Notice how the last line calls this menu system again.......  if you do NOT
; do this, the shell will not be reinvoked.  See documentation on how to clean
; up after applications that clear the stack causing the normal method of
; recalling PULLDWN.EXE to fail....
; ---------------------------------------------
 0123456789012345
%Lotus 1-2-3 v3.0
;             ^-------- Highlight the 3
HI=13
+d:
+cd\123r3
+123
+pulldwn
;----------------------
; Magellan "clears the stack" which means that unless you pull a little trick
; you will end up in DOS after invoking it from within a batch file.  i.e.
; the PC never reaches the end of your temporary batch file and thus never
; gets back into pulldwn.........  use COMMAND/C just before the command used
; to execute in order to avoid this.
;
;01234567890123
%Lotus Magellan
;      ^---------- Highlight the M
HI=6
+COMMAND/C mg
+pulldwn
'---------------------
%MS Word 4.0
HI=3
+c:
+cd\word4
+word
+pulldwn
;---------------------
%-
;---------------------
%Harvard Graphics
+echo off
+cls
+c:
+cd\harvard
+hg
+pulldwn
;---------------------
%MS Windows
+e:
+cd\win386
+win
+pulldwn
;==============================================================================
DEF
; Second menu choice across the top.  You get 7 of these max.  Falling off
; to the right means that there are too many characters total across the top
; of the menu screen.  Reduce the length of these titles to stop that from
; happening.
%Utilities
;
%PCSHELL (PCTOOLS)
+pcshell
+pulldwn
;---------------------
%Noah's Ark
+command/c ark
+pulldwn
; Fine PKZIP shell system
'---------------------
%XCONFIG
+xconfig
+pulldwn
;---------------------
%-
; Draws a line that will count for menu definition, but will be inactive.
;01234567
%Norton Advanced
HI=7
+nu
+pulldwn
;-------------------
%Disk Optimizer
HI=5
; get it? <grin>
+optimize
+pulldwn
;-------------------
%-
%FastBack Plus
; default highlight is the first letter.....
+c:
+cd\fastback
+fb
+pulldwn
%-
%Format Disk in A:
HI=7
+format a: /v
+pulldwn
%Format Disk in B:
+format b: /v
+pulldwn
%-
%Blank Screen
; neat trick....
+echo off
+cls
+pause > nul
+pulldwn
;==============================================================================
DEF
%Programming
;-----------
%QuickC 2.0
HI=5
+echo off
+cls
+d:
+cd\qc2
+qc
+pulldwn
;-----------
%QuickBASIC 4.5
HI=5
+echo off
+cls
+d:
+cd\qb45
+qbpro
+pulldwn
;-----------
%MASM
+d:
+cd\masm
+masm
+pulldwn
'=====================================
DEF
%Communications
%Qmodem 4.0
+e:
+cd\qmodem
+qmodem
+pulldwn
%PCBoard 14.0/d
+trybbs
%-
%CXI to MainFrame
; those dying beasts
+cd\cxi
+pxu t
+pulldwn
%-
%Modem OFF Hook
+command/c offhook
+pulldwn
'=====================================
DEF
%Editor
%Edit PULLDWN.DEF
+pe2 c:\utils\pulldwn.def
;    ^^^^^^^^
; NOTICE HOW THIS COMMAND POINTS RIGHT TO THE .DEF FILE
+pulldwn
%PE2 Editor
+pe2
+pulldwn
;============================================================================
; Please consider supporting the shareware you use and enjoy.  Thank you.
;============================================================================
; Sample to create your own exit routine.....
DEF
%Exit
; note that it cannot be the only one....
%Exit to DOS
HI=1
+echo off
+cls
+echo Type PULLDWN [ENTER] to return to the menu system.
+echo.
; echo. will echo out a blank line.
; you could thus make it anything....
; e.g. a special logo file etc.
;-------------------------
%Shell to DOS
+echo off
+cls
+echo Type EXIT [ENTER] to return.  (RAM OHD=3.5K)
+echo.
+command
+pulldwn
;=============================================================================
