home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Frostbyte's 1980s DOS Shareware Collection
/
floppyshareware.zip
/
floppyshareware
/
GLEN
/
DVAPMENU.ZIP
/
DVAPMENU.DOC
next >
Wrap
Text File
|
1989-04-11
|
8KB
|
194 lines
DESQview Application Program Menu
Gregory Stewart
RCHVMV(GSTEWART)
April 10, 1989
Version 1.0
The DESQview Application Program Menu program (DVAPMENU) provides
nested menu support for the DESQview environment. It is invoked from
the DESQview Open Window menu, reads a menu definition file and
displays a program selection menu which looks very much like the
DESQview Open Window menu. Programs are started from this panel by
selecting them via mouse or keyboard in the same manner as from the
Open Window menu.
INSTALLING THE DEMONSTRATION PROGRAMS:
The DVAPMENU package consists of this documentation and a single
LOADRAMed file, DVAPMENU RAMBIN. This program contains the menu
program, a menu definition file, example programs, and DESQview
Program Information Files (DVPs) for the example programs.
To install and run the examples, put all of the LOADRAMed files into a
directory on your hard drive. Then run Add a Program from the
DESQview Open Window menu. When Add a Program comes up, select
"Other" from the top of the menu. Specify the drive and subdirectory
into which you copied the files. Add a Program should find the EX-
PIF.DVP file in the directory and will display "DVAPMENU Examples" as
a selectable program to Add. Select the program, hit the Enter key to
add it and keep hitting Enter until the item is added to your menu.
Then you may run DVAPMENU Examples as you would any other installed
program.
CREATING A DVAPMENU MENU DEFINITION FILE
The menu definition file (MDF) is a text file that defines the
application menu. It contains two types of statements, and each
statement can contain one or more keywords and keyword values. An
example of a MDF, illustrating all of the supported keywords, is shown
below:
{ DESQview Data Base sub-menu }
:Menu title='Data base' autoend=y
:Item id=C9 desc='1989 checkbook' dvp=c:\dv\pcfdb.dvp
path=d:\pcfdb parm=/drive,c,/file,cb89,/path,\data\cb89
:Item id=B9 desc='1989 budget' dvp=c:\dv\budg89.dvp
path=d:\pcfdb parm=/drive,c,/file,bu89,/path,\data\cb89
:Item id=AD desc='Name & address' dvp=c:\dv\address.dvp
The first line is a comment. Comments can appear anywhere, and are
enclosed in brackets.
The second line starts the menu definition. The :MENU tag must be the
first tag in the file. It contains two parameters, TITLE and AUTOEND.
The TITLE parameter specifies the title that goes at the top of the
menu. If the title contains a blank, it must be enclosed in single
quotes.
The AUTOEND parameter indicates whether the menu program should end
after initiating a selected program. If it is not automatically ended,
then either the ESC key or mouse button 2 can be used to end it.
The :ITEM tag defines an application entry on the menu. There may be
up to twenty :ITEM tags per MDF. Valid parameters are ID, DESC, DVP,
PATH, and PARM.
The ID parameter defines a two-keystroke sequence used to select the
application from the menu. An application may also be selected by
mouse button 1.
The DESC parameter specifies an application description that goes on
the menu. If the description contains a blank, it must be enclosed in
single quotes.
the DVP parameter specifies the file name of the DESQview Program
Information File. If the DVP files are not in DVAPMENU's current
directory, then the file names must contain the pathname as specified
above. Refer to 'Creating a DVP file' below for additional
information.
The PATH parameter specifies the directory that is to be made current
when the application program is started. There are three ways to set
the application's current directory: if the DIRECTORY field in the DVP
is not blank (contains a directory specification), the application
starts in the PIF-specified directory; if the DIRECTORY field in the
DVP is blank, and the PATH parameter is specified, the application
starts in the directory indicated by the PATH parameter; if the
DIRECTORY field in the DVP is blank, and the PATH parameter is NOT
specified, the application is started in DVAPMENU's current directory.
The PARM parameter specifies the parameters that are to be passed to
the application program. If the parameters contain a blank, they must
be enclosed in single quotes. In order for these parameters to be
passed to the application program, the PARAMETERS field in the DVP
must contain the single character '?'. If the PARAMETERS field in the
DVP does NOT contain the single character '?', then the application
will receive the parameters specified in the DVP.
CREATING A DESQVIEW PROGRAM INFORMATION FILE:
If you want to use DVAPMENU for nested menus, then you probably don't
want the applications to appear on the DESQview Open Window menu. To
do this, you must perform the following steps:
1) ADD the application program to the DESQview Open Window menu via
the DESQview Add a Program (AP) function.
2) COPY the xx-PIF.DVP file created by Add a Program to another file.
If you don't want it to appear on the Add a Program panel, call it
something other than xx-PIF.DVP. In the demonstration above, only
DVAPMENU Examples appears on the Add a Program display, because
only its DVP has a name of the form EX-PIF.DVP.
3) DELETE the application program from the DESQview Open Window menu
via the DESQview Delete a Program (DP) function.
A word of caution: make sure you have the DVP set up the way you want
it before deleting it from the DESQview Open Window menu. The DESQview
Change a Program (CP) function appears to only work on programs on the
Open Window menu, and it is a cumbersome procedure to get it back on
the menu. However, it can be done. You have to rename the DVP file to
a name of the form xx-PIF.DVP, use Add a Program (AP) to add it back
to the Open Window menu, change it via Change a Program (CP), then go
through steps 2 and 3 above to get it off the menu again.
ADDING NESTED MENUS TO THE DESQVIEW OPEN WINDOW MENU
The easiest way that I have found to add nested menus to the Open
Window menu is to use Change a Program on an existing nested menu
entry, change the KEYS USED TO OPEN MENU field, and change the
PARAMETERS field to point it to a different Menu Definition file. If
you installed the demonstration programs above, you can use Change a
Program on the EX entry.
Here's the complete information that goes in to the Program
Information File for DVAPMENU. This example is for the DATABASES
nested menu used in the Menu Definition File example above:
Change a Program
Program Name............: >Data base menu
Keys to Use on Open Menu: DB Memory Size (in K): 32
Program...: c:\dv\dvapmenu.exe
Parameters: c:\dv\database.mdf
Directory.:
Options:
Writes text directly to screen.......: [N]
Displays graphics information........: [N]
Virtualize text/graphics (Y,N,T).....: [N]
Uses serial ports (Y,N,1,2)..........: [N]
Requires floppy diskette.............: [N]
Change a Program Advanced Options
System Memory (in K).......: 1 Maximum Program Memory Size (in K)..:
Script Buffer Size.......: 0 Maximum Expanded Memory Size (in K):
Text Pages: 1 Graphics Pages: 0 Initial Mode: Interrupts: to
Window Position:
Maximum Height: 25 Starting Height: 0 Starting Row...: 0
Maximum Width.: 80 Starting Width.: 0 Starting Column: 80
Shared Program
Pathname..:
Data......:
Close on exit (Y,N,blank)......: [Y] Uses its own colors..............: [N]
Allow Close Window command.....: [Y] Runs in background (Y,N,blank)...: [Y]
Uses math coprocessor..........: [N] Keyboard conflict (0-4)..........: [0]
Share CPU when foreground......: [Y] Share EGA when foreground/zoomed.: [Y]
Can be swapped out (Y,N,blank).: [ ] Protection level (0-3)...........: [0]