home *** CD-ROM | disk | FTP | other *** search
/ Otherware / Otherware_1_SB_Development.iso / mac / developm / scnote / cplussmp.014 / TApplication.r < prev    next >
Encoding:
Text File  |  1989-10-01  |  2.4 KB  |  103 lines

  1. /*------------------------------------------------------------------------------
  2. #
  3. #    Apple Macintosh Developer Technical Support
  4. #
  5. #    MultiFinder-Aware Simple Application Framework
  6. #
  7. #    CPlusTESample
  8. #
  9. #    TApplication.r    -    Rez source
  10. #
  11. #    Copyright ⌐ 1989 Apple Computer, Inc.
  12. #    All rights reserved.
  13. #
  14. #    Versions:    
  15. #            1.20                    10/89
  16. #            1.10                     07/89
  17. #            1.00                     04/89
  18. #    
  19. #    Components:
  20. #            CPlusTESample.make        October 1, 1989
  21. #            TApplicationCommon.h    October 1, 1989
  22. #            TApplication.h            October 1, 1989
  23. #            TDocument.h                October 1, 1989
  24. #            TECommon.h                October 1, 1989
  25. #            TESample.h                October 1, 1989
  26. #            TEDocument.h            October 1, 1989
  27. #            TApplication.cp            October 1, 1989
  28. #            TDocument.cp            October 1, 1989
  29. #            TESample.cp                October 1, 1989
  30. #            TEDocument.cp            October 1, 1989
  31. #            TESampleGlue.a            October 1, 1989
  32. #            TApplication.r            October 1, 1989
  33. #            TESample.r                October 1, 1989
  34. #
  35. #    CPlusTESample is an example application that demonstrates
  36. #    how to initialize the commonly used toolbox managers,
  37. #    operate successfully under MultiFinder, handle desk
  38. #    accessories and create, grow, and zoom windows. The
  39. #    fundamental TextEdit toolbox calls and TextEdit autoscroll
  40. #    are demonstrated. It also shows how to create and maintain
  41. #    scrollbar controls. 
  42. #
  43. #    This version of TESample has been substantially reworked in
  44. #    C++ to show how a "typical" object oriented program could
  45. #    be written. To this end, what was once a single source code
  46. #    file has been restructured into a set of classes which
  47. #    demonstrate the advantages of object-oriented programming.
  48. #
  49. ------------------------------------------------------------------------------*/
  50.  
  51. #include "SysTypes.r"
  52. #include "Types.r"
  53.  
  54. #include "TApplicationCommon.h"
  55.  
  56. /* this ALRT and DITL are used as an error screen */
  57. resource 'ALRT' (rUserAlert, purgeable) {
  58.     {40, 20, 150, 260},
  59.     rUserAlert,
  60.     { /* array: 4 elements */
  61.         /* [1] */
  62.         OK, visible, silent,
  63.         /* [2] */
  64.         OK, visible, silent,
  65.         /* [3] */
  66.         OK, visible, silent,
  67.         /* [4] */
  68.         OK, visible, silent
  69.     }
  70. };
  71.  
  72. resource 'DITL' (rUserAlert, purgeable) {
  73.     { /* array DITLarray: 3 elements */
  74.         /* [1] */
  75.         {80, 150, 100, 230},
  76.         Button {
  77.             enabled,
  78.             "OK"
  79.         },
  80.         /* [2] */
  81.         {10, 60, 60, 230},
  82.         StaticText {
  83.             disabled,
  84.             "Error. ^0."
  85.         },
  86.         /* [3] */
  87.         {8, 8, 40, 40},
  88.         Icon {
  89.             disabled,
  90.             2
  91.         }
  92.     }
  93. };
  94.  
  95.  
  96. resource 'STR#' (kErrStrings, purgeable) {
  97.     {
  98.     "You must run on 512Ke or later";
  99.     "Application Memory Size is too small"
  100.     }
  101. };
  102.  
  103.