Ref: 06430017
Title: Setting up a Print Option for 3+Open Menus
Date: 2/1/91

Copyright 3Com Corporation, 1991.  All rights reserved.

3+Open Menus can be set up so that an individual file can be printed from
the menu.  This article provides step-by-step instructions for using MGEN to
create this option.

1.  Invoke MGEN with the .DAT file you wish to modify.  For example,
MGEN 3MENU1.DAT.

2.  Move to the submenu where you wish to add the print option.  Highlight
the submenu and press the right arrow key.

3.  From the pull-down menu, choose "Edit", "Add", and "Item".

If there are already items existing in the submenu, you will
be prompted to choose the appropriate placement for the new
item (either before or after the current item).

4.  Fill out the first "Item Options" window as follows:

    *  Add the item name as you wish it to appear on the menu,
       such as "Print Item".

    *  Choose the "DOS Commands" option in the "Execute" section
       near the top of the window.

    *  From the "Options" section, choose any options that may
       apply to your environment.  (It is not required to choose any
       options.)

Choose <OK> at the bottom of the screen when done.  The "Link Assignments"
window will appear.

5.  Leave the "Link Assignments" window blank, but press Enter to move into
the "DOS Commands" window.

6.  From the "DOS Commands" window, choose the <INS> option at the bottom of
the window to insert a new command.  Add the command as follows:

    COPY %1 LPT1

where LPT1 is the current redirection to a printer.

7.  Choose <OK> after typing the command.  The command should now
appear in the "DOS Commands" window.

8.  Highlight the command and press <F3> for "Globals".  The
"Global" area allows you to take user input and specify it as
an environment variable.

9.  From the "Global Prompts" window, choose the <INS> option at
the bottom of the window to insert a new prompt.

10.  From the "Prompt Type" window, choose the "File" option, then
choose <OK>.

11.  Complete the "File Prompt" window as follows:

     *  On the "Prompt" line, add the text you want the user to
        see when the user is prompted for a filename.

     *  On the "File Specifications" line, add a "*.*".

All other options may be left blank.  Choose <OK> to accept these entries.

12.  You will be returned to the "Global Prompts" window.  Your
new prompt should appear as follows:

     Ref     Type      Prompt
     -------------------------------------------------
     %1      File      Text entered for prompt

This indicates that the user input received after the prompt
will be stored as the variable %1.

13.  Press Enter to return to "DOS Commands".

14.  Press Enter to complete the item entry.


The print option is now ready to be tested.  To test it, follow these
steps:

1.  Use the MENU batch file to bring up the appropriate .DAT file
(for example, MENU 3MENU1).

After choosing the option, 3+Open Menus will bring up a window with your
prompt and a "*.*" in the user entry area.

2.  Type a specific path and filename, or browse through a directory
of any (previously linked) local or logical drive by typing the drive ID
followed by "*.*".  Double-click on the directory to see the contents and
choose a file.

