home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Club Amiga de Montreal - CAM
/
CAM_CD_1.iso
/
files
/
530b.lha
/
AMenu_v1.3
/
WBTests.txt
< prev
next >
Wrap
Text File
|
1991-07-03
|
2KB
|
40 lines
The original program `MyMenu' had a problem in its WB run mode. After
Looking at the Workbench Program (from ROM) itself and performing a number
of tests on what arguments is given to a application program I came to the
following conclusions. I used this information to correct the WBRun code
and to avoid a problem with the lattice startup code (see below) always
provide a directory lock for the object given.
------------------------------------------
Tool Only:
the only arg : Name = ToolName Lock = DirLock of Tool Directory
Tool & Project/Drawer/Disk (Tool and a number of projects given)
first arg : Name = ToolName Lock = DirLock of Tool Directory
project : Name = ProjectName Lock = Directory of Project
drawer/disk : Name = "" Lock = Directory Lock
^ not a null pointer
------------------------------------------
NO TOOL (the drawers and projects are as above)
If the tool is not selected by user WB totally ignores any icon the
tool may have. The following is what it provides in the first WBArg
in the startup message given to the application tool.
ToolPath from Project has `:' not in the first position (different disk?)
NAME = ToolPath LOCK = NULL
ToolPath has no `:' or `:' in first position (must be same disk)
NAME = ToolPath LOCK = Directory of Project
------------------------------------------
Lattice startup code sets current directory to that of first
argument. If this is NULL, the current directory is set by dos
to the ROOT directory of the BOOT device!
Also note that the ToolWindow string in the startup message is by
default a empty string not a null pointer which lattice also assumes.