home *** CD-ROM | disk | FTP | other *** search
/ Programmer 7500 / MAX_PROGRAMMERS.iso / PASCAL / WMCG73.ZIP / WMCG73.TXT < prev   
Encoding:
Text File  |  1989-07-11  |  7.5 KB  |  199 lines

  1.  
  2.  
  3.  
  4.  
  5.  
  6.  
  7.                                      WMCG
  8.                                 July 11, 1989
  9.  
  10.  
  11.                          Window / Menu Code Generator
  12.  
  13.               The Window /  Menu Code Generator  is a tool developed
  14.           for use  with Turbo Pascal  4.0/5.X -  Turbo Basic 1.0/1.1
  15.           and TPW73 - TBW73 window  and menu utilities to facilitate
  16.           the design and coding of windows and menus.  Currently the
  17.           program  supports windows  and  vertical menus.   A future
  18.           version will contain support for horizontal menus.
  19.  
  20.               To start the program enter WMCG from the command line.
  21.           The program will autodetect what  type of monitor you have
  22.           and what  mode you  are operating  in and  will initialize
  23.           itself accordingly.  General  navigation through the menus
  24.           is accomplished with the arrow  keys.  Enter will select a
  25.           function and Esc will cancel the current activity and back
  26.           you up one level.
  27.  
  28.               The  opening  screen  will  advise  you  of  what type
  29.           monitor and  mode you  are presently  running in.   If you
  30.           wish to by-pass this screen just press enter.
  31.  
  32.               There  are several  menu selections  that will  not be
  33.           available  until data  has been  entered.  You  must first
  34.           enter  the  window  parameters.   The  descriptions follow
  35.           closely the descriptions used  in the documentation.  When
  36.           you  have completed  describing your  window press  ESC to
  37.           return to  the menu.  At  this point, if  you have entered
  38.           any data  that would not  create a valid  window, an error
  39.           message is displayed and you  are given the opportunity to
  40.           return  to   the  edit   screen  to   make  the  necessary
  41.           corrections.
  42.  
  43.               Once  a  valid  window  is  created  you  have several
  44.           options  available  as  indicated by  the  changes  in the
  45.           menus.  In addition the Edit command in the Vertical Menus
  46.           selections will be  enabled.  A brief  description of each
  47.           of the Windows selections follows:
  48.  
  49.                                      View
  50.               Clears the screen and displays the window as you have
  51.           described it.
  52.  
  53.                                      Edit
  54.               Return  to   the  parameter   input  screen   to  make
  55.           alterations to the parameters.
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.                  WMCG Copyright (c) 1988 Richard D. Fothergill
  63.           
  64.                                      - 1 -
  65.           
  66.  
  67.  
  68.  
  69.  
  70.  
  71.  
  72.  
  73.                                      Save
  74.               Writes the code required to generate the window as you
  75.           have described  it.  When save  is selected  a second menu
  76.           appears requesting what  language you would  like the code
  77.           formated  for.  The  code  is  written  to  a  file  named
  78.           WINDOWS.TXT in  plain ASCII code.   You can  then read the
  79.           file directly  into your editor  and move it  to where you
  80.           wish.
  81.  
  82.                                     Clear
  83.               Resets all of the window variables to 0 and erases all
  84.           of the  Title strings.   You are  given an  opportunity to
  85.           abort  this  operation  without  clearing  the parameters.
  86.           Clearing  the parameters  will disable  the view  and save
  87.           functions until  valid parameters are  reentered.  It will
  88.           also disable  all but  the Clear  command in  the Vertical
  89.           Menus selections.
  90.  
  91.                                     MENUS
  92.  
  93.               If you are designing a menu you must define the window
  94.           that the  menu will appear  in.  Until you  have defined a
  95.           valid window the  Edit menu parameters  option will not be
  96.           available to  you.  Once a  valid window  is available you
  97.           may  then access  the edit  parameters screen.   Again the
  98.           descriptions  closely  follow  the  documentation.   After
  99.           entering your  data, pressing ESC  will return  you to the
  100.           selections menu.   Here again,  some variable  checking is
  101.           done, and if  something doesn't look  correct you will get
  102.           an  error message  and  the opportunity  to  correct them.
  103.           Once valid data  is available all  menu selections will be
  104.           enabled.  A brief description of those follow:
  105.  
  106.                                      View
  107.               Clears the  screen and displays  the menu  as you have
  108.           described it.  The  arrow keys will  perform as they would
  109.           in a real menu  and Esc will return  you to the selections
  110.           menu.
  111.  
  112.                                      Edit
  113.               Return  to   the  parameter   input  screen   to  make
  114.           alterations.
  115.  
  116.                                      Save
  117.               When  selected  will request  which  language  to use.
  118.           Then you  will be presented  a screen  requesting names to
  119.           use within the code generated.   This option will create a
  120.           plain ASCII text file using  the file name given.  It will
  121.           then write a skeleton program  that can be loaded directly
  122.           into  your  editor,  compiled   and  run.   It  creates  a
  123.           procedure  called Initmenu  which when  called initializes
  124.           the vmenurec  to the Menu  name given.  It  then creates a
  125.           procedure  by the  name  given for  Procedure  name.  This
  126.           procedure contains the skeleton code for using the menu as
  127.  
  128.                  WMCG Copyright (c) 1988 Richard D. Fothergill
  129.           
  130.                                      - 2 -
  131.           
  132.  
  133.  
  134.  
  135.  
  136.  
  137.  
  138.  
  139.           you have  described it.  Basically  all you have  to do is
  140.           insert you  code for each  of the case  statements and you
  141.           have a fully functional program.   Or, as will probable be
  142.           the case, you can incorporate the code into your program.
  143.  
  144.                                     Clear
  145.               Resets all of  the menu variables to  0 and erases all
  146.           of  the Item  strings.  You  are  given an  opportunity to
  147.           abort  this  operation  without  clearing  the parameters.
  148.           Clearing  the parameters  will disable  the view  and save
  149.           functions   within   the  menu   selections   until  valid
  150.           parameters are reentered.
  151.  
  152.                            WARRANTY AND DISCLAIMER
  153.  
  154.               The author  make no warranties,  expressed or implied,
  155.           as to  the quality  or performance  of this  program.  The
  156.           author will not  be held liable  for any direct, indirect,
  157.           incidental or consequential damages resulting from the use
  158.           of  this program.   Your use  of this  program constitutes
  159.           your agreement to this disclaimer  and your release of the
  160.           author from any form of liability or litigation.
  161.  
  162.  
  163.               If  you  are  using  TPWCM  and  find  it  of  value a
  164.           contribution ($10.00)  to the  author is  suggested.  This
  165.           will  enable  and  encourage  the  further  development of
  166.           TPWCM.
  167.  
  168.  
  169.  
  170.           Rick Fothergill               BBS - (413) 499-7245
  171.           141 Oak Hill Road             300-1200-2400 baud 8-N-1
  172.           Pittsfield, MA  01201
  173.  
  174.  
  175.  
  176.  
  177.  
  178.  
  179.  
  180.  
  181.  
  182.  
  183.  
  184.  
  185.  
  186.  
  187.  
  188.  
  189.  
  190.  
  191.  
  192.  
  193.  
  194.                  WMCG Copyright (c) 1988 Richard D. Fothergill
  195.           
  196.                                      - 3 -
  197.           
  198.  
  199.