                         Resource Examples #1
                         By Nathan Prichard


     Here are two example files for use of fairly simple dialog boxes.
     The only fancy part of it is the second procedure's changing the
     title of the box, in the first example.  Other than that, it just
     shows how to enter and retrieve data using editable fields, radio
     buttons, and exit buttons.

     This archive file should include:

     RSC_1.LST      The source code for the program, in ASCII format.
     RSC_2.LST      The source code for another program, in ASCII.
     RSC_EX1.RSC    The resource file for the program.
     RSC_EX2.RSC    The resource file for the second program
     RSC_EX1.DFN    The definition file for the first RSC file.
     RSC_EX2.DFN    The definition file for the second RSC file.
     RSC1.TXT       This documentation.
     
     I suggest using the 'Resource Construction Set' to look at
     'RSC_EX1.RSC.'  You can see how the dialog box is set up and the
     names for each of the elements.  This will be helpful when you
     look at the source code.

     There are two basic parts to the example dialog box.  The top one
     is an object that contains three radio buttons.  Remember that
     radio buttons of a related group must all be contained by the
     same parent object.  The bottom part contains three editable
     fields for entering information.  Remember, too, that an editable
     object should not be the last object of a dialog box; just be
     sure to add at least one more object after the last editable one

     The two procedures are similar.  The only difference is that the
     second shows how to place or change some of the information in
     elements of the dialog box.  Play around with the source code
     and get some ideas of what you might want to do.

     The second example, 'RSC_EX2.LST,' more directly addresses some
     various aspects of entering and retrieving information from
     editable fields.  Again, use the 'Resource Construction Set' to
     examine the resource files.  Various fields are designed to take
     only certain kinds of information.  Two of the fields are
     designed to take some formatted information, so notice how that
     information is returned from the dialog box and how it must be
     handled by the programmer.

     As with any dialog box, be sure you incude at least one exit
     object/button!  Remember that the information about the exit
     object, returned from the FORM_DO() function, is one of the keys
     to handling dialogs.  The states of various buttons will
     determine if you need to re-draw parts of the dialog box.


     
     If you have any comments, problems, or suggestions, I can be
     found regularly at the BBS's listed below.  Feel free to post
     this file to other BBS's or online services.


          *ST Synchronicity:  (CAOAK) (510)-526-6471

          HASTE:              (TXHOU) (713)-921-0550

          Floppy Wizard :     (TXHOU) (713)-827-8041

          Double Click :      (TXHOU) (713)-944-0108

          Question Mark:      (MABOS) (617)-328-9230

          Toad Hall:          (MABOS) (617)-567-8642

          BCS/Atari:          (MABOS) (617)-396-4607
               (Boston Computer Society)

          The Melting Pot:    (TXDAL) (214)-557-2329

          Codehead:           (CALAN) (213)-461-2095

          The Net Exchange, SprintNet's BBS dedicated to PCP
          [ C PURSUIT at the '@' prompt (no ID, no password--it is a
          free call)], in the Atari section.

