home *** CD-ROM | disk | FTP | other *** search
/ Fresh Fish 5 / FreshFish_July-August1994.bin / bbs / util / cliva-2.3.lha / CliVa / CliVa_eng.guide < prev    next >
Encoding:
Text File  |  1994-01-12  |  37.1 KB  |  1,191 lines

  1. @Cliva Guide
  2.  
  3. @node main " CliVa option table  "
  4.  
  5. CliVa v2.0 Copyright © 1991 1992 1993 Christian Warren  All rights reserved.
  6. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  7.  @{" Introduction! " link "INTRODUCTION"}   @{" Who and Where " link "WHO_WHERE"}   @{"    History    " link "HISTORY"}   @{"   Thanks..  " link "THANKS.."}
  8.  
  9.                            @{" Menu Definitions " link "MENU"}
  10.                            ~~~~~~~~~~~~~~~~~~
  11.              @{" Function  Keys " link "SPECIAL"}            @{"      Notes      " link Notes_Config}
  12.              ~~~~~~~~~~~~~~~~            ~~~~~~~~~~~~~~~~~
  13.                      Configuration Commands for CliVa
  14.                      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  15.           @{" POS_WINDOW           " link "POS_WINDOW"}       @{" ICON_WHEN_EXECUTE    " link "ICON_WHEN_EXECUTE"}
  16.           @{" DEF_ICON             " link "DEF_ICON"}       @{" COLOR_BORDER_GADGET  " link "COLOR_BORDER_GADGET"}
  17.           @{" SIZE_GADGET          " link "SIZE_GADGET"}       @{" COLOR_WINDOW         " link "COLOR_WINDOW"}
  18.           @{" PIXEL_BETWEEN_GADGET " link "PIXEL_BETWEEN_GADGET"}       @{" COLOR_BACKGROUND     " link "COLOR_BACKGROUND"}
  19.           @{" PIXEL_FROM_BORDER    " link "PIXEL_FROM_BORDER"}       @{" COLOR_GADGET_DEF     " link "COLOR_GADGET_DEF"}
  20.           @{" NB_GADGETS           " link "NB_GADGETS"}       @{" ON_SCREEN            " link "ON_SCREEN"}
  21.           @{" WINDOW_TITLE         " link "WINDOW_TITLE"}       @{" NO_MENU              " link "NO_MENU"}
  22.           @{" TASK_PRIORITY        " link "TASK_PRIORITY"}       @{" GADGET_ICONIFIED     " link "GADGET_ICONIFIED"}
  23.           @{" DEF_WINDOW_EXECUTE   " link "DEF_WINDOW_EXECUTE"}       @{" FONT_STYLE           " link "FONT_STYLE"}
  24.           @{" ICONIFIED            " link "ICONIFIED"}       @{" FONT                 " link "FONT"}
  25.           @{" NO_DRAG_BAR          " link "NO_DRAG_BAR"}       @{" UP_TO_DOWN           " link "UP_TO_DOWN"}
  26.           @{" SET_VAR              " link "SET_VAR"}
  27.  
  28.  
  29.                           @{" Gadgets Definitions " link "Def_Gadgets"}
  30.                           ~~~~~~~~~~~~~~~~~~~~~
  31.        @{"  =S  " link "=S"}       @{"  =]  " link "=]"}       @{"  =[  " link "=["}       @{"  =E  " link "=E"}       @{"  =P  " link "=P"}
  32.        @{"  =D  " link "=D"}       @{"  =D* " link "=D*"}       @{"  =[* " link "=[*"}       @{"  =L  " link "=L"}       @{"  =M  " link "=M"}
  33.  
  34.  
  35.                          @{" Commands  Definitions " link "Def_Commands"}
  36.                          ~~~~~~~~~~~~~~~~~~~~~~~
  37.  All options start with a BackSlash ('\') and are followed by arguments
  38.  define between brackets ('[', ']').
  39.  
  40.        @{"   b   " link "\b"}       @{"  o O  " link "\oO"}       @{"   vm  " link "\vm"}       @{"   pp  " link "\pp"}       @{"   m   " link "\m"}
  41.        @{"   d   " link "\d"}       @{"   pa  " link "\pa"}       @{"   vs  " link "\vs"}       @{"   p   " link "\p"}       @{"   M   " link "\MM"}
  42.        @{"   dl  " link "\dl"}       @{"   q   " link "\q"}       @{"  vte  " link "\vte"}       @{"   sa  " link "\sa"}       @{"  ael  " link "\ael"}
  43.        @{"   f1  " link "\f1"}       @{"   ql  " link "\ql"}       @{"   vu  " link "\vu"}       @{"   sA  " link "\sAA"}       @{"  aes  " link "\aes"}
  44.        @{"   fl  " link "\fl"}       @{"  ivs  " link "\ivs"}       @{"   I   " link "\I"}       @{"   sm  " link "\sm"}       @{"  des  " link "\des"}
  45.        @{"   fm  " link "\fm"}       @{"  ved  " link "\ved"}       @{"   Q   " link "\QQ"}       @{"   sM  " link "\sMM"}       @{"   es  " link "\es"}
  46.        @{"  g G  " link "\gG"}       @{"  vnd  " link "\ved"}       @{"   np  " link "\np"}       @{"   nd  " link "\nd"}       @{"   nd  " link "\nd"}
  47.        @{"   X   " link "\X"}       @{"  vfe  " link "\vfe"}
  48. @endnode
  49.  
  50. @node INTRODUCTION "INTRODUCTION"
  51.  
  52. CliVa v2.0 Copyright © 1991 1992 1993 Christian Warren  All rights reserved.
  53. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  54.    CliVa is placed in the Public Domain for the Amiga.  A shareware fee
  55. of 15$ is suggested to use it.  Feel free to use it, but AT YOUR OWN RISK,
  56. as I cannot be considered responsible for any damage caused to your system.
  57.  
  58. Introduction
  59. ~~~~~~~~~~~~
  60.    CliVa will give you the chance to build a interface entirely configurable
  61. to launch your applications from gadgets. If you want to have a better idea of
  62. the possibility of CliVa, I encourage you to check for the examples supplied
  63. in the archive.
  64.    To use CliVa, you must have the 'PowerPacker.library' (permit the
  65. compression of the config) and the 'req.library'. These two library are
  66. present in the archive, if you execute the 'Example' file the library will be
  67. charged in memory but not copied to your system. To install them on your
  68. system you must click on the 'Install CliVa' Button.
  69.  
  70. Requirement
  71. ~~~~~~~~~~~
  72.    - CliVa must be able to access the 'PowerPacker.library', the
  73.    'req.library' and the 'diskfont.library'.
  74.    - The file 'echo', 'execute', 'newshell' and 'mouse' must be present in one
  75.    of the directory of the path.
  76.    - The OS 2.0 IS NOT required for CliVa.
  77.  
  78.  
  79. Information on the CliVa executable
  80. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  81.    - CliVa is 'pure', you can make it resident.
  82.  
  83.    SHELL usage:
  84.             Cliva {-configuration} Other.config {-configuration}
  85.  
  86.    WORKBENCH usage:
  87.             -configuration
  88.             ...
  89.             Other.config
  90.             ...
  91.  
  92.    argument:
  93.       '-configuration' ==> CliVa take the arguement as if it as been placed at
  94.                            the beginning of the config file.
  95.                         ex.
  96.                            CliVa "-TASK_PRIORITE 3" "-SET_VAR BLACK 0"
  97.  
  98.       'Other.config' ==> Config to load.  By default, CliVa search in the
  99.                          current path for the file 'CliVa.config' then he
  100.                          search it in the directory S:.
  101.                       ex.
  102.                          CliVa Other.config
  103.  
  104. @endnode
  105.  
  106. @node TASK_PRIORITY " TASK_PRIORITY "
  107.  
  108.  
  109.      Name:  TASK_PRIORITY
  110.    format:  -TASK_PRIORITY priority
  111.   default:  priority = 0
  112.  function:  Define the task priority of CliVa, must be between -19 and +19.
  113.  
  114. @endnode
  115.  
  116. @node DEF_WINDOW_EXECUTE " DEF_WINDOW_EXECUTE "
  117.  
  118.  
  119.      Name:  DEF_WINDOW_EXECUTE
  120.    format:  -DEF_WINDOW_EXECUTE shell_window_definition
  121.   default:  "CON:000/095/640/105/CliVa_Shell"
  122.  function:  Define all shell output specifications which will be opened if
  123.             the selected gadget needs an output window.
  124. @endnode
  125.  
  126. @node ON_SCREEN " ON_SCREEN "
  127.  
  128.  
  129.      Name:  ON_SCREEN
  130.    format:  -ON_SCREEN my_screen
  131.   default:  "Workbench"
  132.  function:  Opens CliVa on a particular screen. The supplied name of the
  133.             screen can consist of the first few letters of the targeted
  134.             real name screen. If the screen is not found, CliVa will open
  135.             on the default screen. Make sure you close CliVa before you
  136.             close the screen it is on, because you will be meditating about
  137.             your error while rebooting your system.:-)
  138.             ex. -ON_SCREEN CED  -> Open Cliva on the Cygnus Ed screen
  139. @endnode
  140.  
  141. @node ICONIFIED " ICONIFIED "
  142.  
  143.  
  144.      Name:  ICONIFIED
  145.    format:  -ICONIFIED
  146.  function:  CliVa will start iconified.
  147. @endnode
  148.  
  149. @node ICON_WHEN_EXECUTE " ICON_WHEN_EXECUTE "
  150.  
  151.  
  152.      Name:  ICON_WHEN_EXECUTE
  153.    format:  -ICON_WHEN_EXECUTE
  154.  function:  The 'AutoIconify' option in the menu will be selected.
  155.             (more on this AutoIconify function further down)
  156. @endnode
  157.  
  158. @node WINDOW_TITLE " WINDOW_TITLE "
  159.  
  160.  
  161.      Name:  WINDOW_TITLE
  162.    format:  -WINDOW_TITLE title
  163.   default:  "CliVa 2.0 (c) 1991-1993 Christian Warren"
  164.  function:  Changes the window title. If CliVa's configuration is more
  165.             than one page, the following will be inserted "   (Page xxx/max )"
  166.             to the titlebar. If the NO_DRAG_BAR option is used, the Screen
  167.             titlebar will be used.
  168. @endnode
  169.  
  170. @node NO_DRAG_BAR " NO_DRAG_BAR "
  171.  
  172.  
  173.      Name:  NO_DRAG_BAR
  174.    format:  -NO_DRAG_BAR
  175.  function:  The window does not have a visible DragBar. CliVa will create
  176.             invisible gadgets to replace those that are eliminated.
  177.             Those invisible gadgets will be placed at the top of the window.
  178. @endnode
  179.  
  180. @node NO_MENU " NO_MENU "
  181.  
  182.  
  183.      Name:  NO_MENU
  184.    format:  -NO_MENU
  185.  function:  Does not attach a menu to the screen. You must define a "Quit"
  186.             gadget if you want to be able to Quit CliVa.
  187. @endnode
  188.  
  189. @node FONT " FONT "
  190.  
  191.  
  192.      Name:  FONT
  193.    format:  -FONT font height
  194.   default:  system font by default.
  195.  function:  Define the font to be used and its height.
  196.             ex. -FONT Diamond.font 14
  197. @endnode
  198.  
  199. @node POS_WINDOW " POS_WINDOW "
  200.  
  201.  
  202.      Name:  POS_WINDOW
  203.    format:  -POS_WINDOW position_x position_y
  204.   default:  position_x = 0             position_y = 11
  205.  function:  Define CliVa's top left window corner. If your entry is more
  206.             then the screen border, the position will be ajusted to be as
  207.             close as possible. An example would be if you define X as 2000,
  208.             then CliVa's window will be against the right side screen border.
  209. @endnode
  210.  
  211. @node COLOR_WINDOW " COLOR_WINDOW "
  212.  
  213.  
  214.      Name:  COLOR_WINDOW
  215.    format:  -COLOR_WINDOW Letter_color Background_color
  216.   default:  Letter_color = 2         Background_letter_color = 1
  217.  function:  Define colors to be used in the window. These colors are, among
  218.             things, used for menus and window border.
  219. @endnode
  220.  
  221. @node COLOR_BACKGROUND " COLOR_BACKGROUND "
  222.  
  223.  
  224.      Name:  COLOR_BACKGROUND
  225.    format:  -COLOR_BACKGROUND color
  226.   default:  color = 2
  227.  function:  Define color for background of the window.
  228. @endnode
  229.  
  230. @node NB_GADGETS " NB_GADGETS "
  231.  
  232.  
  233.      Name:  NB_GADGETS
  234.    format:  -NB_GADGETS nb_horizontal nb_vertical
  235.   default:  nb_horizontal = 5          nb_vertical = 4
  236.  function:  Define how many horizontal and vertical gadgets.
  237. @endnode
  238.  
  239. @node UP_TO_DOWN " UP_TO_DOWN "
  240.  
  241.  
  242.      Name:  UP_TO_DOWN
  243.    format:  -UP_TO_DOWN
  244.  function:  The gadgets will be numbered from top to buttom instead of
  245.             left to right.
  246.  
  247.             NORMAL               UPDOWN
  248.             1  2  3              1  4  7
  249.             4  5  6              2  5  8
  250.             7  8  9              3  6  9
  251. @endnode
  252.  
  253. @node SIZE_GADGET " SIZE_GADGET "
  254.  
  255.  
  256.      Name:  SIZE_GADGET
  257.    format:  -SIZE_GADGET Width height
  258.   default:  width = 112              height = 13
  259.  function:  Define width and height of gadgets.
  260. @endnode
  261.  
  262. @node PIXEL_BETWEEN_GADGET " PIXEL_BETWEEN_GADGET "
  263.  
  264.  
  265.      Name:  PIXEL_BETWEEN_GADGET
  266.    format:  -PIXEL_BETWEEN_GADGET space_x space_y
  267.   default:  space_x = 12             space_y = 4
  268.  function:  Define space, in pixels, between the gadgets.
  269. @endnode
  270.  
  271. @node PIXEL_FROM_BORDER " PIXEL_FROM_BORDER "
  272.  
  273.  
  274.      Name:  PIXEL_FROM_BORDER
  275.    format:  -PIXEL_FROM_BORDER left right top buttom
  276.   default:  left = 16    right = 16    top = 5    buttom = 5
  277.  function:  Define space, in pixels, between the gadgets and the border
  278.             of the window.
  279. @endnode
  280.  
  281. @node COLOR_BORDER_GADGET " COLOR_BORDER_GADGET "
  282.  
  283.  
  284.      Name:  COLOR_BORDER_GADGET
  285.    format:  -COLOR_BORDER_GADGET color_Top color_Buttom
  286.   default:  color_Top = 1            color_Buttom = 0
  287.  function:  Define colors to be used for the gadgets borders.
  288.  
  289. @endnode
  290.  
  291. @node COLOR_GADGET_DEF " COLOR_GADGET_DEF "
  292.  
  293.  
  294.      Name:  COLOR_GADGET_DEF
  295.    format:  -COLOR_GADGET_DEF Letter_color Back_color
  296.   default:  Letter_color = 1         Back_color = 2
  297.  function:  Define default color for gadgets.
  298. @endnode
  299.  
  300. @node FONT_STYLE " FONT_STYLE "
  301.  
  302.  
  303.      Name:  FONT_STYLE
  304.    format:  -FONT_STYLE style
  305.   default:  NORMAL
  306.  function:  Define default font style for the gadgets. You must enter
  307.             a number defining the font style.
  308.             PLAIN TEXT = 0             UNDERSCORE = 1
  309.               BOLDFACE = 2                ITALICS = 4
  310.               EXTENDED = 8
  311.             ex. BOLDFACE + ITALICS -> 2 + 4  ==> -FONT_STYLE 6
  312. @endnode
  313.  
  314. @node GADGET_ICONIFIED " GADGET_ICONIFIED "
  315.  
  316.  
  317.      Name:  GADGET_ICONIFIED
  318.    format:  -GADGET_ICONIFIED name
  319.   default:  "CliVa"
  320.  function:  Define what will be written in CliVa's iconified window.
  321. @endnode
  322.  
  323. @node DEF_ICON " DEF_ICON "
  324.  
  325.  
  326.      Name:  DEF_ICON
  327.    format:  -DEF_ICON position_x position_y width
  328.   default:  position_x = 0     position_y = 11     width = 100
  329.  function:  Define CliVa's top left window corner position and width.
  330.              ( minimum width = 26)
  331.             The X and Y arguments are subject to the same defenition of
  332.             POS_WINDOW. The height of the window will respect the
  333.             gadgets height.
  334. @endnode
  335.  
  336. @node SET_VAR " SET_VAR "
  337.  
  338.  
  339.      Name:  SET_VAR
  340.    format:  -SET_VAR name value
  341.  function:  Define a variable to ease creation of scripts.
  342.             You can define as many variables as you wish. Once defined,
  343.             CliVa will replace the -name- by its -numeric_value- when a
  344.             configuration needs a number as an argument.
  345.             If a variable name is define more than once, only the first
  346.             occurance will be used. Variables usage is encouraged to create
  347.             easy modifiable scripts.
  348.  
  349.             ex.   -SET_VAR red                3
  350.                   -SET_VAR blue               2
  351.                   -SET_VAR Boldface_Undescore 3
  352.  
  353.                   -COLOR_GADGET_DEF red blue
  354.                   -FONT_STYLE Boldface_Undescore
  355. @endnode
  356.  
  357. @node Notes_Config " Notes "
  358. Notes.
  359.       - The variables defined by SET_VAR can be used anywhere when the
  360.         argument required is a number.
  361.    ex. -SET_VAR red 2                   <= OK
  362.        -SET_VAR Titre "CliVa 2.0"  <= ERROR
  363.        -COLOR_BACKGROUND red       <= OK
  364.        -WINDOW_TITLE Title         <= ERROR
  365.        -WINDOW_TITLE red           <= window title -> 'red'
  366.  
  367.       - The argument which have imbedded spaces must be quoted using '"'.
  368.          ex. -WINDOW_TITLE "CliVa 2.0"
  369.  
  370.       - These commands MUST BE placed before any gadget definition.
  371.         If a command is placed after a gadget definition, it will be shown
  372.         in the gadget definition.
  373.  
  374.       - You can comment lines using the '#' at the beginning of the line.
  375. @endnode
  376.  
  377. @node Def_Gadgets " Def_Gadgets "
  378.  
  379.  
  380. Gadgets definition
  381. ~~~~~~~~~~~~~~~~~~
  382.  
  383.    These arguments are used to define a gadget.
  384.       Title of gadget = Chain of characters to be written in the gadget. The
  385.                         title of the gadget can contain [<number>]. It will
  386.                         insert the content of the defined variable <number>.
  387.                         If the variable's value changes, it will be reflected
  388.                         in the gadget's title
  389.                         ex.
  390.                            variable 1 = "OS 2.0"
  391.                            title      = "Color [1]"
  392.                            Result    -> "Color OS 2.0"
  393.       Letter_color  = Color used for the letters in a gadget.
  394.       Back_color    = Color for the background in a gadget.
  395.       Font_style    = Font style for a gadget.
  396.                         (see configuration FONT_STYLE)
  397.  
  398. @endnode
  399.  
  400. @node =S " =S "
  401.  
  402.  
  403.    ------------------------ 1. Starting Command  --------------------------
  404.  
  405.       format:
  406.          =S
  407.          Command
  408.          [Command ...]
  409.       function:
  410.          Define the commands that will be executed when Starting CliVa.
  411.          No gadgets will be created. This can be usefull if you want to
  412.          assign some values by default to certain variable.
  413.       example:
  414.          =S
  415.          \vs[1]Workbench
  416.          \vs[2]df0:
  417.          \vs[3]df1:
  418.  
  419.          =D "DiskCopy from [2] to [3]"
  420.          DiskCopy \vu[2] TO \vu[3]
  421. @endnode
  422.  
  423. @node =D " =D "
  424.  
  425.  
  426.    ------------------------------ 2. Gadget -------------------------------
  427.  
  428.       format:
  429.          =D Title [Letter_color] [Back_color] [Font_style]
  430.          Command
  431.          [Command ...]
  432.       function:
  433.          Define a gadget. You must supply a title, others are optional.
  434.       example:
  435.          =D "Avail" red blue
  436.          Avail\w
  437. @endnode
  438.  
  439. @node =D* " =D* "
  440.  
  441.  
  442.    ------------------------------- 3. Menu --------------------------------
  443.  
  444.       format:
  445.          =D* Title [Letter_color] [Back_color] [Font_style]
  446.       function:
  447.          Define a 'Menu'. This kind of gadget cannot execute commands.
  448.          They can be used to seperate different part of your configuration.
  449.          These Gadget wont have the elevated 3d look like regular ones.
  450.          You must supply a title, others are optional.
  451.       example:
  452.          =D* "Tools" white black
  453. @endnode
  454.  
  455. @node =[ " =[ "
  456.  
  457.  
  458.    -------------------- 4. Definition of a Fix Gadget  --------------------
  459.  
  460.       format:
  461.          =[ position Title [Letter_color] [Back_color] [Font_style]
  462.          Command
  463.          [Command ...]
  464.       function:
  465.          Define a gadget that will show up on every pages, at the same
  466.          location it was defined for. You must supply the position where
  467.          you want it to be located. A negatif number will place the gadget
  468.          counting from the end of the page instead of the beginning.
  469.          Don't forget to keep in mind the UP_TO_DOWN option. The number
  470.          of fix gadget is limited to 29. Be carefull not to put all gadgets
  471.          of a page as Fix ones, in that situation CliVa will fall in a loop
  472.          and will create zillions of gadgets...
  473.       example:
  474.          If NUMBER_GADGET_HORIZONTAL = 4
  475.             NUMBER_GADGET_VERTICAL   = 3
  476.  
  477.          The gadgets will be numbered as:
  478.  
  479.             1    2    3    4           -12  -11  -10   -9
  480.             5    6    7    8     or     -8   -7   -6   -5
  481.             9   10   11   12            -4   -3   -2   -1
  482.  
  483.                   =[ 11 "Next Page" black red
  484.                   \np
  485.  
  486.                   *** is equal to ***
  487.  
  488.                   =[ -2 "Next Page" black red
  489.                   \np
  490. @endnode
  491.  
  492. @node =[* " =[* "
  493.  
  494.  
  495.    --------------------- 5. definition of a Fix Menu ----------------------
  496.  
  497.       format:
  498.          =[* position Title [Letter_color] [Back_color] [Font_style]
  499.       function:
  500.          Define a Menu that will appear on each pages, starting from the
  501.          location where it is define. For the rest, its the same as a
  502.          Fix Gadget.
  503. @endnode
  504.  
  505. @node =] " =] "
  506.  
  507.  
  508.    --------------- 6. destruction of a gadget or a Fix Menu ---------------
  509.  
  510.       format:
  511.          =] position
  512.       function:
  513.           Kill a Fix Gadget or a Fix Menu.
  514.       example:
  515.          ... many pages WithOUT the Bogus gadget ...
  516.          =[* 2 "Bogus"
  517.          ... many pages WITH the Bogus gadget ...
  518.          =] 2
  519.          ... many pages without the Bogus gadget ...
  520. @endnode
  521.  
  522. @node =E " =E "
  523.  
  524.  
  525.    ---------------------------- 7. Empty Gadget----------------------------
  526.  
  527.       format:
  528.          =E
  529.       function:
  530.          Define a empty gadget. Equal to the defenition:
  531.          =D* ""
  532. @endnode
  533.  
  534. @node =L " =L "
  535.  
  536.  
  537.    --------------------- 8. Empty gadget till next line -------------------
  538.  
  539.       format:
  540.          =L
  541.       function:
  542.          Place 'Empty' gadgets till next line as long as we are not the
  543.          first gadget of the line, if on the first gadget, nothing will be
  544.          done.
  545. @endnode
  546.  
  547. @node =P " =P "
  548.  
  549.  
  550.    --------------------- 9. Empty Gadget till next page -------------------
  551.  
  552.       format:
  553.          =P
  554.       function:
  555.          Place 'empty' gadget till next page as long as we are not the
  556.          first gadget of the page, if on the first gadget, nothing will be
  557.          done.
  558.  
  559. @endnode
  560.  
  561. @node =M " =M "
  562.  
  563.  
  564.    ------- 10. Add an APPMenu to the Tools menu of the Workbench ----------
  565.  
  566.       format:
  567.          =M Title
  568.          Command
  569.          [Command ...]
  570.       fonction:
  571.          Define an APPMenu.  You must supply a title.  You cannot use variable
  572.          in the title...
  573.          (ex. '=M "See [1]"' => Title will be "See [1]".)
  574.       exemple:
  575.          =M "See Texte"
  576.          more \f1
  577. @endnode
  578.  
  579. @node Def_Commands " Def_Commands "
  580.  
  581.  
  582. Options available on the command script line
  583. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  584.  
  585. All options start with a BackSlash ('\') and are followed by arguments
  586. define between brackets ('[', ']').  If an argument define as
  587. [^<number>], then the content of the variable <number> will be used.
  588.    ex.
  589.    \vs[1]You have selected the file \f1!
  590.    \pa[Information][^1][OK]
  591.  
  592. Notes.
  593.      - When the argument of a command is 'starting directory', you can
  594.      place a [-] to keep it effective. This function is only usefull when
  595.      you want to supply values to other arguments (ex. the title) with out
  596.      having to define it again.
  597.      ex.
  598.      Copy \f1[dh0:][From Which file?] TO \f1[][To Which file?]
  599.      => This way, the starting directory of the second \f1 will be the
  600.      current directory. But if you replace the second \f1 by
  601.      '\f1[-][To Which file?]' then the current directory will be the one
  602.      from which file are copied from, which more practical..
  603.  
  604.      - When the argument is a 'Question', you can place '@' in the question
  605.      which will insert a line feed at that place.
  606.  
  607.      - The variables used in this part of CliVa are define by a number of
  608.      variable (1 to 15000) and by the content of that variable. Once
  609.      define, the variable can be used just about anywhere. For example,
  610.      the content of a variable can be used as a gadget title (see gadget
  611.      defenition). Be carefull not to get mixed up using CliVa's local
  612.      variables and the 'Env:' environment variables, you must use the
  613.      \vfe and \vte functions which provide a way of importing and exporting
  614.      the content of 'Env:' environments with a CliVa's variable.
  615.  
  616. @endnode
  617.  
  618. @node \b " \b "
  619.  
  620.  
  621.     option: \b
  622.   function: Executes a backspace in the command.
  623.    example: Copy df0: to df0:\b\b1:  =>  Copy df0: to df1:
  624.  
  625. @endnode
  626.  
  627. @node \d " \d "
  628.  
  629.  
  630.     option: \d[starting directory][window title]
  631. Arg oblig.: None.
  632.   function: Opens a directory requester.
  633.    example: cd \d[ram:][Which directory?]
  634.  
  635. @endnode
  636.  
  637. @node \dl " \dl "
  638.  
  639.  
  640.     option: \dl
  641.   function: Insert the last directory selected.  If \f1 or \fm as been
  642.             used, the path will be inserted. This option can be very
  643.             useful, take for instance the following example.
  644.    example: \vs[1]\f1[][File to be executed?]
  645.             cd \dl         => The current directory is the one where
  646.             \vu[1]         => the file to be executed is located.
  647.  
  648. @endnode
  649.  
  650. @node \f1 " \f1 "
  651.  
  652.  
  653.     option: \f1[starting directory][window title][pattern]
  654. Arg oblig.: None.
  655.   function: Open a file requester. The selected file will be inserted in
  656.             the script.
  657.    example: Unwarp \f1[download:][Which file?][*.wrp]
  658.  
  659. @endnode
  660.  
  661. @node \fl " \fl "
  662.  
  663.  
  664.     option: \fl[extension]
  665. Arg oblig.: None.
  666.   function: Insert the last selected file. You can change the extension
  667.             of the file.
  668.    example: shamsharp \f1 \fl[iff]  ==>  shamsharp "image.gif" "image.iff"
  669.  
  670. @endnode
  671.  
  672. @node \fm " \fm "
  673.  
  674.  
  675.     option: \fm[starting directory][window title][pattern][max]
  676. Arg oblig.: None.
  677.   function: Open a multiple file requester. You can specify a maximum
  678.             number of files to be selected.
  679.    example: View80 \fm[text:][Texts to read?][*][10]
  680.  
  681. @endnode
  682.  
  683. @node \gG " \gG "
  684.  
  685.  
  686.     option: \g and \G
  687.   function: By default, the files and directories are quoted.
  688.             These options give you the possibility to remove or insert
  689.             quotes.
  690.             \g -> No quotes.
  691.             \G -> Insert quotes.
  692.    example: View80 \f \g\f \G\f    => view80 "file1" file2 "file3"
  693.  
  694. @endnode
  695.  
  696. @node \oO " \oO "
  697.  
  698.  
  699.     option: \o et \O
  700.   function: By default, the file is preceded by its path.
  701.             These options give you the possibility to remove or insert
  702.             the path.
  703.             \o -> No path.
  704.             \O -> Insert the path.
  705.    example: Deksid \f1        =>  Deksid "dh0:rep/file"
  706.             Deksid \o\f1      =>  Deksid "file"
  707.             Deksid \O\f1      =>  Deksid "dh0:rep/file"
  708.  
  709. @endnode
  710.  
  711. @node \pa " \pa "
  712.  
  713.  
  714.     option: \pa[window title][question][Left Cont][Middle Cont][Right Cont]
  715.                            [Left Content][Middle Content][Right Content]
  716. Arg needed: Window tiltle and Question.
  717.   function: Open a requester. If the Left answer is selected, then its
  718.             content is inserted in the script. Same thing for Middle and
  719.             Right.
  720.    example: \pa[Info][Which drive?][df0:][][df1:][df0:][][df1:]
  721.  
  722. @endnode
  723.  
  724. @node \q " \q "
  725.  
  726.  
  727.     option: \q[content by default][window title]
  728. Arg needed: Content and Title.
  729.   function: Ask a question.
  730.    example: Unwarp \f1 \q[df0:][Which drive?]
  731.  
  732. @endnode
  733.  
  734. @node \ql " \ql "
  735.  
  736.  
  737.     option: \ql
  738.   function: Insert the last answer to a question.
  739.    example: cd \q[df0:][Which Drive?]
  740.             Unwarp \f1 \ql
  741.  
  742. @endnode
  743.  
  744. @node \ivs " \ivs "
  745.  
  746.  
  747.     option: \ivs[variable number]
  748. Arg needed: Variable number.
  749.   function: If the variable IS NOT define, the remaining of the current line
  750.             will be analysed.
  751.    example: \ivs[1]\vs[1]\d[ram:][Open a Shell in which directory?]
  752.             NewShell \vu[1] => The first time this gadget will be executed
  753.                                the directory will be asked. Then the
  754.                                command "NewShell Dir" will be executed
  755.                                without entering anything.
  756.  
  757. @endnode
  758.  
  759. @node \vc " \vc "
  760.  
  761.  
  762.     option: \vc[variable number]
  763. Arg needed: None.
  764.   function: Clear one or all variables of CliVa. If no argument are passed
  765.             to this function, all variables will be erased.
  766.             You should always clear local variables to one gadget, since
  767.             each variable requires memory.
  768.    example: \vs[1]You have selected the file \f1
  769.             \pa[Info][^1]
  770.             \vc[1]
  771.  
  772. @endnode
  773.  
  774. @node \ved " \ved "
  775.  
  776.  
  777.     option: \ved[variable number][content targeted]
  778. Arg needed: Variable number and the content targeted.
  779.   function: If the variable is define and its content is equal to the
  780.             targeted one, the rest of the current line will be analysed.
  781.             (possibility to use pattern when you have the OS 2.0)
  782.    example: \vs[1]\pa[Info][Question?][Choice a][Choice b][Choice c][a][b][c]
  783.             \ved[1][a]Command for choice a.
  784.             \ved[1][a]Other command for choice a.
  785.             \ved[1][b]Command for choice b.
  786.             \ved[1][c]Command for choice c.
  787.  
  788. @endnode
  789.  
  790. @node \vnd " \vnd "
  791.  
  792.  
  793.     option: \vnd[variable number][content targeted]
  794. Arg needed: Variable number and the content targeted.
  795.   function: If the variable is define and its content IS NOT EQUAL to the
  796.             targeted one, the rest of the current line will be analysed.
  797.             (possibility to use pattern when you have the OS 2.0)
  798.  
  799. @endnode
  800.  
  801. @node \vfe " \vfe "
  802.  
  803.  
  804.     option: \vfe[CliVa variable number][name of the variable ENV:]
  805. Arg needed: CliVa Variable number and the name of the variable ENV:.
  806.   function: Import the content of a variable 'ENV:' in one of 'CliVa'.
  807.             You must use this function if you want (for example) to modify
  808.             the content of a Environment 'ENV:'.
  809.             Note: the name of the variable 'ENV:' can contain a path
  810.             (ex. 'ram:env/Workbench') but it must not be Quoted.
  811.    example: \vs[1]\g\o\f1[ENV:][Modify which variable ENV:?]
  812.             \vfe[2][^1]
  813.             \vm[2]
  814.             \vte[2][^1]
  815.  
  816. @endnode
  817.  
  818. @node \vm " \vm "
  819.  
  820.  
  821.     option: \vm[variable number]
  822. Arg needed: Variable number.
  823.   function: Modify the content of a variable. The window title will be
  824.             'Modify variable', if that title doesn't reflect your needs,
  825.             you can always use the \q option which of a more general nature.
  826.             \vm[1]    ===     \vs[1]\q[^1][Other Title]
  827.    example: \vs[1]\f1         => 'ram:env/Workbench'
  828.             \vm[1]
  829.             Deksid \vu[1]\vc[1]
  830.  
  831. @endnode
  832.  
  833. @node \vs " \vs "
  834.  
  835.  
  836.     option: \vs[variable number][Content]
  837. Arg needed: Variable number.
  838.   function: Assign the content of a variable.  If Content is provided,
  839.             Content will be assigned to the variable.  Otherwise the content
  840.             assigned will be the analysed result of the line on which \vs is.
  841.             The variable number must be between 1 and 15000.  If you enter a
  842.             number outside of this range, CliVa will accept it but the result
  843.             could be surprising.
  844.    example: You have chosen \f1.\vs[1]
  845.                      => Variable 1 = 'You have chosen a "file".'
  846.             \vs[1][Dummy1]\vs[2][Dummy2]
  847.                      => Variable 1 = 'Dummy1' and Variable 2 = 'Dummy2'
  848.  
  849. @endnode
  850.  
  851. @node \vte " \vte "
  852.  
  853.  
  854.     option: \vte[CliVa variable number][name of the variable ENV:]
  855. Arg needed: CliVa variable number and the name of the variable ENV:.
  856.   function: Export the content of the CliVa variable to the ENV: variable.
  857.             Note: Unlike \vfe, the name of the variable ENV: can not
  858.             contain the path..
  859.    example: \vfe[2][WorkBench]
  860.             \vm[2]
  861.             \vte[2][WorkBench]
  862.  
  863. @endnode
  864.  
  865. @node \vu " \vu "
  866.  
  867.  
  868.     option: \vu[variable number][content by default]
  869. Arg needed: Variable number.
  870.   function: Insert in the script the content of a variable. If the variable
  871.             is not define, the default content will be used.
  872.    example: Format DRIVE \vu[1][df0:] name \q[Stuff][New name?]\w\nd
  873.  
  874. @endnode
  875.  
  876. @node \I " \I "
  877.  
  878.  
  879.     option: \I
  880.   function: After the gadget as been executed, CliVa will iconify.
  881.    example: CliVa s:other.config\I
  882.  
  883. @endnode
  884.  
  885. @node \QQ " \Q "
  886.  
  887.  
  888.     option: \Q
  889.   function: After the gadget as been executed, CliVa will quit.
  890.    example: CliVa s:CliVa.config\Q  ==>  RE-LOAD CliVa config.
  891.  
  892. @endnode
  893.  
  894. @node \np " \np "
  895.  
  896.  
  897.     option: \np
  898.   function: After the gadget as been executed, the page number will be
  899.             incremented by one. Many \np can be in the same command.
  900.    example: =D "Next Page"
  901.             \np
  902. @endnode
  903.  
  904. @node \pp " \pp "
  905.  
  906.  
  907.     option: \pp
  908.   function: After the gadget as been executed, the page number will be
  909.             decremented by one. Many \pp can be in the same command
  910.    example: =D "Précédente Page"
  911.             \pp
  912.  
  913. @endnode
  914.  
  915. @node \p " \p "
  916.  
  917.  
  918.     option: \p[page number]
  919. Arg needed: Page number.
  920.   function: After the gadget as been executed, the page number will be
  921.             changed to the one supplied.
  922.    example: =D "Go to page 3"
  923.             \p[3]
  924.  
  925. @endnode
  926.  
  927. @node \sa " \sa "
  928.  
  929.  
  930.     option: \sa
  931.   function: DeSelect the AutoIconify option in the menu.
  932.  
  933. @endnode
  934.  
  935. @node \sAA " \sA "
  936.  
  937.  
  938.     option: \sA
  939.   function: Select the AutoIconify option in the menu.
  940.  
  941. @endnode
  942.  
  943. @node \sm " \sm "
  944.  
  945.  
  946.     option: \sm
  947.   function: DeSelect the modify option in the menu.
  948.  
  949. @endnode
  950.  
  951. @node \sMM " \sM "
  952.  
  953.  
  954.     option: \sM
  955.   function: Select the modify option in the menu.
  956.  
  957. @endnode
  958.  
  959. @node \m " \m "
  960.  
  961.  
  962.     option: \m
  963.   function: The line which contains \m may be modified when the gadget is
  964.             executed. See the 'Modify Command' option.
  965.    example: cd dh0:     ==>   doesn't modify
  966.             Avail\m     ==>   modify's
  967.             dir         ==>   doesn't modify
  968.  
  969. @endnode
  970.  
  971. @node \MM " \M "
  972.  
  973.  
  974.     option: \M
  975.   function: Starting at the line where \M is, all lines can be modified
  976.             when the gadget is executed. See the 'Modify Command' option.
  977.    example: cd dh0:     ==>   doesn't modify
  978.             Avail\M     ==>   modify's
  979.             dir         ==>   modify's
  980.  
  981. @endnode
  982.  
  983. @node \ael " \ael "
  984.  
  985.  
  986.     option: \ael[Window Title][Question][Positive Resp][Negative Resp]
  987. Arg needed: Window Title and Question.
  988.   function: If the answer is Positive, then the rest of the current line
  989.             will be analysed.
  990.    example: avail
  991.             \eal[Question][Execute Deksid before dir?][Yes][No]Deksid
  992.             dir
  993.  
  994. @endnode
  995.  
  996. @node \aes " \aes "
  997.  
  998.  
  999.     option: \aes[Window title][Question][Positive Resp][Negative Resp]
  1000. Arg needed: Window Title and Question.
  1001.   function: If the answer is Positive, then the rest of the lines will be
  1002.             analysed.
  1003.    example: avail
  1004.             \aes[Question][Execute Deksid and dir?][Yes][No]Deksid
  1005.             dir
  1006.  
  1007. @endnode
  1008.  
  1009. @node \des " \des "
  1010.  
  1011.  
  1012.     option: \des[Window Title][Question][Positive Resp][Negative Resp]
  1013. Arg needed: None
  1014.   function: If the  answer to the question is Negative or the title and
  1015.             the question are not supplied, Then the script will not be
  1016.             executed.
  1017.    example: avail
  1018.             \des[Question][Execute Avail, Deksid and dir?][Yes][No]Deksid
  1019.             dir
  1020.  
  1021. @endnode
  1022.  
  1023. @node \es " \es "
  1024.  
  1025.  
  1026.     option: \es
  1027.   function: Execute the content of the script after the current line as
  1028.             been analysed even if the analysis is not fully completed.
  1029.             Once the script as been started, the rest of the commands will
  1030.             be analysed.
  1031.    example: avail\es\w
  1032.             dir\es\w       => opens 2 output windows, and executed
  1033.                               asynchronously avail and Dir
  1034.  
  1035. @endnode
  1036.  
  1037. @node \nd " \nd "
  1038.  
  1039.  
  1040.     option: \nd
  1041.   function: By default, if the \w option is used, the following DOS command
  1042.             will be added to the script 'echo Press mouse button' and
  1043.             'mouse'.  Which will prevent the window from closing till you
  1044.             hit the mouse button to exit. With the \nd option, these two
  1045.             commands are not added to the script.
  1046.    example: echo "Read quickly :)"\w\nd
  1047.  
  1048. @endnode
  1049.  
  1050. @node \w " \w "
  1051.  
  1052.  
  1053.     option: \w
  1054.   function: Signals the script that an OutPut window is needed. What this
  1055.             is really, the DOS command executed will be
  1056.                'NewShell "shell_window_definition" from script'
  1057.             instead of
  1058.                'Execute script'
  1059.    example: avail\w
  1060.  
  1061. @endnode
  1062.  
  1063. @node \X " \X "
  1064.  
  1065.  
  1066.     option: \X
  1067.   function: Execute immediately the line where \X is. This line will not be
  1068.             included in the final script. The analysis of the commands will
  1069.             be halted till the execution of that line is not completed.
  1070.    example: more text\X
  1071.             \pa[Question][The Text is OK?][Yes][Maybe][No]
  1072.  
  1073. @endnode
  1074.  
  1075. @node SPECIAL " SPECIAL "
  1076.  
  1077.  
  1078. SPECIAL
  1079. ~~~~~~~
  1080.  - When you click on a gadget, you can press in the same time on the fonction
  1081. key (Control, Alt, Amiga). These variables will be initialised.
  1082.    - variable number 15001 <- 'CONTROL'  if the CONTROL key is pressed.
  1083.    - variable number 15002 <- 'R-ALT'    if the RIGHT-ALT key is pressed.
  1084.    - variable number 15003 <- 'L-ALT'    if the LEFT-ALT key is pressed.
  1085.    - variable number 15004 <- 'ALT'      if one of the ALT key is pressed.
  1086.    - variable number 15005 <- 'R-AMIGA'  if the RIGHT-AMIGA key is pressed.
  1087.    - variable number 15006 <- 'L-AMIGA'  if the LEFT-AMIGA key is pressed.
  1088.    - variable number 15007 <- 'AMIGA'    if one of the AMIGA key is pressed.
  1089. Exemple.
  1090.    =D "Avail"
  1091.    \ved[15001][CONTROL] Avail    => if the CONTROL key is pressed -> 'Avail'
  1092.    \vnd[15001][CONTROL] Avail flush    => Otherwise 'Avail flush'
  1093.  
  1094.  
  1095. @endnode
  1096.  
  1097. @node MENU " MENU "
  1098.  
  1099.  
  1100. MENU
  1101. ~~~~
  1102.  - AutoIconify: When this option is selected, CliVa will iconify
  1103.                 automatically after each execution of a gadget that
  1104.                 contains at least one DOS command. This way, gadgets
  1105.                 like 'Next Page' can be executed without having
  1106.                 CliVa iconifying.
  1107.  
  1108.  - Modify: All lines in the gadget defenition can be modified before
  1109.            they are inserted in the script. If one of the SHIFT key
  1110.            is press while clicking on a gadget, the modify option will
  1111.            be active during the analysis of the commands.
  1112.  
  1113. @endnode
  1114.  
  1115. @node HISTORY " HISTORY "
  1116.  
  1117.  
  1118. History
  1119. ~~~~~~~
  1120.    version 2.0:   Marsh 30, 93
  1121.    ------------
  1122.    First official version.
  1123.  
  1124.    version 2.1:   October 16, 93          Size: 19776
  1125.    ------------
  1126.    Minor BUG - A couple of Small bugs removed.
  1127.    NEW - New option 'NO_HIDDEN_BUTTON', this option will not put an invisible
  1128.          ScrollBar to the window when the option 'NO_DRAG_BAR' is used.
  1129.  
  1130.    version 2.2:   November 3, 93          Size: 20356
  1131.    ------------
  1132.    NEW - A new option '=M name' that define an element who will be linked to
  1133.          the 'Tools' menu of the Workbench. (OS 2.0 only)
  1134.    NEW - Pattern can now be used in the option '\ved' and '\vnd'.
  1135.          (ex. '\ved[1][*.c]CED \vu[1]' => if it is a source, use CygnusEd)
  1136.          (OS 2.0 only)
  1137.    Minor BUG - CliVa had some problem to determine the exact size of the
  1138.                workbench.  Bug removed.
  1139.    Minor BUG - Some probleme when using the option '\fl[new extension' with
  1140.                the 'no path' option selectionned ('\o'). Bug removed.
  1141.  
  1142.    version 2.3:   January 12, 1994        Size: 20352
  1143.    ------------
  1144.     NEW - The enregistred user will receive a key file that will modify the
  1145.          About text.
  1146.     Major BUG - CliVa had a bug in with the Menus in conjunction with the
  1147.                Iconified state.  Bug removed.
  1148.  
  1149. To Do
  1150. ~~~~~
  1151.         - Use the ReqTools.library instead of Req.library.
  1152.         - Addition of 'shortcuts' to the gadgets.
  1153.         - Possibility to use names for variables instead of numbers.
  1154.         - Make a more WB2.0 specific version.
  1155.  
  1156. @endnode
  1157.  
  1158. @node WHO_WHERE " WHO and WHERE "
  1159.  
  1160. To reach and encourage me:
  1161. ~~~~~~~~~~~~~~~~~~~~~~~~~~
  1162.  CLIVA is a Shareware product, which means if you use it much, then you
  1163.  should pay for it. A 15$ contribution is suggested. Any other contribution
  1164.  are also accepted. Do not hesitate to give me some feedback through the
  1165.  networks on CLIVA. All Amiga Clubs and disks public domain collections like
  1166.  Fred Fish, are encouraged to make CliVa part of there disks collections.
  1167.  
  1168.                      1:167.151.0@fidonet
  1169.  Christian Warren   40:600/151.0@amiganet
  1170.                    101:166/106.0@francomedia
  1171.  
  1172.                    Christian Warren
  1173.                    2201 Edouard-MontPetit #11
  1174.                    Montréal, Qué, CANADA
  1175.                    H3T 1J3
  1176.  
  1177. @endnode
  1178.  
  1179. @node THANKS.. " THANKS.. "
  1180.  
  1181. Thanks to
  1182. ~~~~~~~~~
  1183.  - C.W. Fox and Bruce Dawson: for there fantastic File Requester
  1184.                               and Color Requester libraries.
  1185.  - Nico Francois: For is excellent libraries.
  1186.                   (ReqTools et PowerPacker).
  1187.  - Denis Turcotte: For have been the official Beta-tester, for 'forcing me'
  1188.                    to implement a bunch of functions and to have translated
  1189.                    these docs.. Will he make the .guide's!!
  1190. @endnode
  1191.