home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / OS2BAS.ZIP / SETUP.RC < prev    next >
Text File  |  1989-09-09  |  7KB  |  163 lines

  1. /*******************************************************************\
  2. * File Name:   Setup.RC                                             *
  3. *                                                                   *
  4. * Description: Resource compiler script file for Setup.BAS.         *
  5. *                                                                   *
  6. *              This file defines the resources used by Setup.BAS.   *
  7. *              Three types of resources are created: a menu, an     *
  8. *              accelerator table, and 4 dialog boxes.               *
  9. *                                                                   *
  10. *              The first dialog box is a simple about box and       *
  11. *              requires no processing.                              *
  12. *                                                                   *
  13. *              The second dialog box is basically an entryfield     *
  14. *              box with some checkboxes.  It is used to set drives  *
  15. *              and paths.  The procedure for this dialog is         *
  16. *              ClientWndProc1.                                      *
  17. *                                                                   *
  18. *              The third and fourth dialog boxes are help boxes     *
  19. *              and also require no processing.                      *
  20. \*******************************************************************/
  21.  
  22. #include <os2.h>
  23.  
  24. #define IDSETUP  1
  25. #define IDBITMAP 2
  26. #define IDDRPATH 2
  27. #define IDSTART  3
  28. #define IDABOUT  4
  29.  
  30. #define IDSOURCE  1
  31. #define IDDEST    2
  32. #define IDBASE    3
  33. #define IDINCLUDE 4
  34. #define IDLIB     5
  35. #define IDCMD     6
  36. #define IDHELP    7
  37. #define IDUTILITY 8
  38. #define IDEXAMPLE 9
  39. #define IDCHECK   20
  40.  
  41. #define BNOK      10
  42. #define BNCANCEL  11
  43. #define BNHELP    12
  44.  
  45. BITMAP  IDBITMAP \pm\setup\setup.bmp
  46. POINTER IDSETUP  \pm\setup\setup.ico
  47.  
  48. MENU IDSETUP {
  49.  
  50.    SUBMENU "~Setup", IDSETUP {
  51.  
  52.       MENUITEM "Set ~Drives/Paths", IDDRPATH
  53.       MENUITEM "~Start Setup",      IDSTART
  54.       MENUITEM SEPARATOR
  55.       MENUITEM "E~xit\tF3", SC_CLOSE, MIS_SYSCOMMAND
  56.       MENUITEM "A~bout Setup...",   IDABOUT
  57.    }
  58.  
  59.    MENUITEM "F1=Help", 0, MIS_HELP | MIS_BUTTONSEPARATOR
  60.  
  61. }
  62.  
  63. ACCELTABLE IDSETUP
  64.       {
  65.       VK_F3, SC_CLOSE, VIRTUALKEY, SYSCOMMAND
  66.       }
  67.  
  68. DLGTEMPLATE IDABOUT {
  69.  
  70.    DIALOG "", 0, 32, 32, 200, 88,, FCF_DLGBORDER | FS_SCREENALIGN {
  71.  
  72.       CTEXT "BASIC OS/2 Presentation Manager"       -1, 10, 64, 180, 8
  73.       CTEXT "SETUP"                                 -1, 10, 56, 180, 8
  74.       CTEXT "Setup for BASIC PM Toolkit Supplement" -1, 10, 40, 180, 8
  75.       CTEXT "Created by Microsoft Corp, 1989"       -1, 10, 32, 180, 8
  76.       DEFPUSHBUTTON "OK"                     DID_OK, 80,  8,  40, 16, WS_GROUP
  77.    }
  78.  
  79. }
  80.  
  81.  
  82. DLGTEMPLATE IDDRPATH
  83. BEGIN
  84.     DIALOG "", -1, 99, 29, 271, 172, FS_DLGBORDER | FS_SCREENALIGN
  85.     BEGIN
  86.         LTEXT "Source Drive:",                   -1,   5, 142, 132, 8
  87.         LTEXT "Destination Drive:",              -1,   5, 127, 132, 8
  88.         LTEXT "Base Directory:",                 -1,   5, 112, 132, 8
  89.         LTEXT "Subdirectory for INCLUDE files:", -1,   5,  98, 135, 8
  90.         LTEXT "Subdirectory for LIB files:",     -1,   5,  83, 132, 8
  91.         LTEXT "Subdirectory for CMD files:",     -1,   5,  68, 132, 8
  92.         LTEXT "Subdirectory for Help files:",    -1,   5,  53, 132, 8
  93.         LTEXT "Subdirectory for Utility files:", -1,   5,  38, 132, 8
  94.         LTEXT "Subdirectory for Example files:", -1,   5,  23, 132, 8
  95.         CTEXT "Set Drives and Paths",            -1,  84, 159,  91, 8
  96.         CTEXT "Install?",                        -1, 235, 158,  35, 8
  97.         ENTRYFIELD "", IDSOURCE , 150, 143, 82, 8, SS_FGNDFRAME | WS_GROUP
  98.         ENTRYFIELD "", IDDEST   , 150, 128, 82, 8, SS_FGNDFRAME | WS_GROUP
  99.         ENTRYFIELD "", IDBASE   , 150, 113, 82, 8, SS_FGNDFRAME | WS_GROUP
  100.         ENTRYFIELD "", IDINCLUDE, 150,  98, 82, 8, SS_FGNDFRAME | WS_GROUP
  101.         ENTRYFIELD "", IDLIB    , 150,  83, 82, 8, SS_FGNDFRAME | WS_GROUP
  102.         ENTRYFIELD "", IDCMD    , 150,  68, 82, 8, SS_FGNDFRAME | WS_GROUP
  103.         ENTRYFIELD "", IDHELP   , 150,  53, 82, 8, SS_FGNDFRAME | WS_GROUP
  104.         ENTRYFIELD "", IDUTILITY, 150,  39, 82, 8, SS_FGNDFRAME | WS_GROUP
  105.         ENTRYFIELD "", IDEXAMPLE, 150,  24, 82, 8, SS_FGNDFRAME | WS_GROUP
  106.         CHECKBOX   "", IDCMD     + IDCHECK,246, 68, 9, 9,  BS_NOPOINTERFOCUS | WS_TABSTOP
  107.         CHECKBOX   "", IDHELP    + IDCHECK,246, 53, 9, 9,  BS_NOPOINTERFOCUS | WS_TABSTOP
  108.         CHECKBOX   "", IDUTILITY + IDCHECK,246, 39, 9, 9,  BS_NOPOINTERFOCUS | WS_TABSTOP
  109.         CHECKBOX   "", IDEXAMPLE + IDCHECK,246, 24, 9, 9,  BS_NOPOINTERFOCUS | WS_TABSTOP
  110.         DEFPUSHBUTTON "OK",     BNOK,      33, 5, 38, 12
  111.         PUSHBUTTON    "Cancel", BNCANCEL, 123, 5, 38, 12
  112.         PUSHBUTTON    "Help",   BNHELP,   214, 5, 38, 12
  113.     END
  114. END
  115.  
  116. DLGTEMPLATE WM_HELP
  117. {
  118.     DIALOG "", WM_HELP, 80, 20, 248, 200, FS_DLGBORDER | FS_SCREENALIGN
  119.     {
  120.         CTEXT "BASIC PM Setup -- Help", -1, 50, 187, 108, 8
  121.         LTEXT "SETUP provides you with an easy way to copy the files provided with this package.",
  122.                 -1, 20, 163, 210, 16, DT_WORDBREAK
  123.         LTEXT
  124. "SETUP requires that all files are copied onto the same drive and in a limited directory structure.  You can set the base directory and subdirectories for each of the different types of files, but that is the limit of SETUP's flexibility.",
  125.                 -1, 20, 114, 210, 41, DT_WORDBREAK
  126.         LTEXT "For a different directory structure, see the ""Getting Started"" section for instructions on copying the files manually.",
  127.                 -1, 20, 80, 210, 26,  DT_WORDBREAK
  128.         LTEXT "Besides copying the files, SETUP also modifies the 4 PMBC.CMD files for the directory structure specified and NEW-VARS.SYS which contains the environment variables which should be changed in your CONFIG.SYS.",
  129.                 -1, 20, 30, 210, 42,  DT_WORDBREAK
  130.         DEFPUSHBUTTON "OK", -1, 104, 8, 40, 12
  131.     }
  132. }
  133.  
  134. DLGTEMPLATE BNHELP
  135. {
  136.     DIALOG "", BNHELP, 80, 20, 240, 220, FS_DLGBORDER | FS_SCREENALIGN
  137.     {
  138.         LTEXT "Enter paths for each item: ",
  139.               -1, 60, 200, 120, 8
  140.         LTEXT "Source drive contains disks from this package.",
  141.               -1, 16, 184, 205, 8
  142.         LTEXT "Destination drive will contain all files.",
  143.               -1, 16, 168, 205, 8
  144.         LTEXT "Base directory contains the following subdirectories:",
  145.               -1, 16, 152, 205, 8, DT_WORDBREAK
  146.         LTEXT "INCLUDE files are the converted .H files.",
  147.               -1, 32, 136, 176, 8
  148.         LTEXT "Library files are RegBas.LIB and source.",
  149.               -1, 32, 120, 179, 8
  150.         LTEXT "Help files are .HLP files for QuickHelp.",
  151.               -1, 32, 104, 174, 8
  152.         LTEXT "Command files are PMBC.CMD, etc.",
  153.               -1, 32,  88, 195, 8
  154.         LTEXT "Utility files are BASIC utility routines.",
  155.               -1, 32,  72, 195, 8
  156.         LTEXT "Example files are PMBASIC examples.",
  157.               -1, 32,  56, 195, 8
  158.         LTEXT "To setup with a different directory structure, copy files manually as shown in ""Getting Started"".",
  159.               -1, 16,  32, 209, 16, DT_WORDBREAK
  160.         DEFPUSHBUTTON "OK", -1, 100, 8, 40, 12
  161.     }
  162. }
  163.