home *** CD-ROM | disk | FTP | other *** search
/ DP Tool Club 24 / CD_ASCQ_24_0995.iso / dos / tools / aurora21 / cfgmain.aml < prev    next >
Text File  |  1995-08-10  |  3KB  |  63 lines

  1. /* ------------------------------------------------------------------ */
  2. /* Macro:        CFGMAIN.AML                                          */
  3. /* Written by:   nuText Systems                                       */
  4. /*                                                                    */
  5. /* Description:  This macro displays the main configuration dialog    */
  6. /*               box.                                                 */
  7. /* ------------------------------------------------------------------ */
  8.  
  9.   include bootpath "define.aml"
  10.  
  11.   // run a configuration macro for a button pressed
  12.   function cfg (id)
  13.     suffix = case id
  14.                when  1 "color"       when 11 "open"
  15.                when  2 "conf"        when 12 "print"
  16.                when  3 "desk"        when 13 "prom"
  17.                when  4 "edit1"       when 14 "save"
  18.                when  5 "edit2"       when 15 "sort"
  19.                when  6 "fmgr"        when 16 "find"
  20.                when  7 "ldlm"        when 17 "form"
  21.                when  8 "marg"        when 18 "video"
  22.                when  9 "misc"        when 19 "style"
  23.                when 10 "mouse"       when 20 "styl2"
  24.                otherwise ''
  25.              end
  26.     if suffix then
  27.       runmacro getbootpath + "CFG\\CFG" + suffix + ".X"
  28.     end
  29.   end
  30.  
  31.   dialog "Configuration and Setup" 73 16 "cp"
  32.  
  33.   // column 1
  34.   button "&Colors"               3  2 20   whenenter "cfg"
  35.   button "Co&nfirmations"        3  4 20   whenenter "cfg"
  36.   button "&Desktop"              3  6 20   whenenter "cfg"
  37.   button "&Edit Options 1"       3  8 20   whenenter "cfg"
  38.   button "Edit Options &2"       3 10 20   whenenter "cfg"
  39.   button "&File Manager"         3 12 20   whenenter "cfg"
  40.   button "&Line Delimiter"       3 14 20   whenenter "cfg"
  41.  
  42.   // column 2
  43.   button "&Margins and Tabs"    27  2 20   whenenter "cfg"
  44.   button "M&iscellaneous"       27  4 20   whenenter "cfg"
  45.   button "Mo&use"               27  6 20   whenenter "cfg"
  46.   button "&Open"                27  8 20   whenenter "cfg"
  47.   button "&Print"               27 10 20   whenenter "cfg"
  48.   button "P&rompt"              27 12 20   whenenter "cfg"
  49.   button "S&ave"                27 14 20   whenenter "cfg"
  50.  
  51.   // column 3
  52.   button " &Sort"               51  2 20   whenenter "cfg"
  53.   button " Searc&h / Replace"   51  4 20   whenenter "cfg"
  54.   button " &Text Reformat"      51  6 20   whenenter "cfg"
  55.   button " &Video"              51  8 20   whenenter "cfg"
  56.   button " &Window Style &1"    51 10 20   whenenter "cfg"
  57.   button " Window St&yle 2"     51 12 20   whenenter "cfg"
  58.   button " <E&xit>"             51 14 20
  59.  
  60.   // display the dialog box
  61.   getdialog
  62.  
  63.