
                      Another C Easy Sample Program

  buttons.c demonstrates the use of graphic buttons to call programs.

  The program is driven by the contents of a text file called buttons.dta.

  The format of buttons.dta is as follows:

     start  color  width  height  line  column  label  program  end
      (1)    (2)    (3)    (4)     (5)   (6)     (7)     (8)    (9)

  Each line in the text file must contain the above 9 fields, separated
  by at least TWO spaces.

  Field (1) literal string 'start' must begin in column 1.

  Field (2) 'color' must contain 0 thru 15; the color of the button.

  Field (3) 'width' is the width of the button.

  Field (4) 'height' is the height of the button.

  Field (5) 'line' is the upper left line (1-30) of the button.

  Field (6) 'column' is the upper left column (1-80) of the button.

  Field (7) 'label' is the label displayed on the button.
            To offset the label within the button, precede the label
            by ", followed by the number of spaces to offset.

  Field (8) 'program' is the name of the program called when the
            button is clicked.

  Field (9) literal string 'end' must terminate the line.


  Whenever you create new buttons, modify exisiting buttons, or use a
  different buttons definition file, you must first delete buttons.ovl.

  buttons.ovl is regenerated automatically if it does not exist when you
  execute the buttons program. buttons.ovl contains the screen image of
  corresponding to the last executed definition file.

  To use the default buttons definition file (buttons.dta), type:

         buttons <Enter>

  To use a different buttons definition file, type:

         buttons ? <Enter>

  where ? is the last letter of the buttons definition file extension.

  For example, to execute a buttons definition file that you have named
  buttons.dt2, you would type:

        buttons 2 <Enter>

  REMEMBER, you must delete the buttons.ovl file before you switch
  button definiton files. If you don't, the last executed button screen
  will be displayed instead of the one you expect.
