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 >
Text File  |  1991-07-03  |  2KB  |  40 lines

  1.   The original program `MyMenu' had a problem in its WB run mode. After
  2. Looking at the Workbench Program (from ROM) itself and performing a number
  3. of tests on what arguments is given to a application program I came to the
  4. following conclusions. I used this information to correct the WBRun code
  5. and to avoid a problem with the lattice startup code (see below) always
  6. provide a directory lock for the object given.
  7.  
  8.         ------------------------------------------
  9.  
  10. Tool Only:
  11.   the only arg :   Name = ToolName      Lock = DirLock of Tool Directory
  12.  
  13. Tool & Project/Drawer/Disk  (Tool and a number of projects given)
  14.  first arg   :     Name = ToolName      Lock = DirLock of Tool Directory
  15.  project     :     Name = ProjectName   Lock = Directory of Project
  16.  drawer/disk :     Name = ""            Lock = Directory Lock
  17.                         ^ not a null pointer
  18.  
  19.         ------------------------------------------
  20.  
  21. NO TOOL   (the drawers and projects are as above)
  22.   If the tool is not selected by user WB totally ignores any icon the
  23. tool may have. The following is what it provides in the first WBArg
  24. in the startup message given to the application tool.
  25.  
  26. ToolPath from Project has `:' not in the first position (different disk?)
  27.        NAME = ToolPath      LOCK = NULL
  28.  
  29. ToolPath has no `:' or `:' in first position (must be same disk)
  30.        NAME = ToolPath      LOCK = Directory of Project
  31.  
  32.         ------------------------------------------
  33.  
  34.   Lattice startup code sets current directory to that of first
  35. argument. If this is NULL, the current directory is set by dos
  36. to the ROOT directory of the BOOT device!
  37.   Also note that the ToolWindow string in the startup message is by
  38. default a empty string not a null pointer which lattice also assumes.
  39.  
  40.