home *** CD-ROM | disk | FTP | other *** search
/ Otherware / Otherware_1_SB_Development.iso / mac / developm / scnote / tesample.002 / TESampleAUX.r < prev    next >
Text File  |  1989-06-01  |  5KB  |  122 lines

  1. /*------------------------------------------------------------------------------
  2. #
  3. #    Apple Macintosh Developer Technical Support
  4. #
  5. #    MultiFinder-Aware Simple TextEdit Sample Application
  6. #
  7. #    TESample
  8. #
  9. #    This file: TESampleAUX.r    -    Rez Source
  10. #
  11. #    Copyright ⌐ 1989 Apple Computer, Inc.
  12. #    All rights reserved.
  13. #
  14. #    Versions:    
  15. #                1.00                08/88
  16. #                1.01                11/88
  17. #                1.02                04/89
  18. #                1.03                06/89
  19. #
  20. #    Components:
  21. #                TESample.p            June 1, 1989
  22. #                TESample.c            June 1, 1989
  23. #                TESampleGlue.a        June 1, 1989    -MPW only-
  24. #                TESample.r            June 1, 1989
  25. #                TESample.h            June 1, 1989
  26. #                PTESample.make        June 1, 1989    -MPW only-
  27. #                CTESample.make        June 1, 1989    -MPW only-
  28. #                TESampleGlue.s        June 1, 1989    -A/UX only-
  29. #                TESampleAUX.r        June 1, 1989    -A/UX only-
  30. #                Makefile            June 1, 1989    -A/UX only-
  31. #
  32. #    TESample is an example application that demonstrates how 
  33. #    to initialize the commonly used toolbox managers, operate 
  34. #    successfully under MultiFinder, handle desk accessories and 
  35. #    create, grow, and zoom windows. The fundamental TextEdit 
  36. #    toolbox calls and TextEdit autoscroll are demonstrated. It 
  37. #    also shows how to create and maintain scrollbar controls.
  38. #
  39. #    It does not by any means demonstrate all the techniques you 
  40. #    need for a large application. In particular, Sample does not 
  41. #    cover exception handling, multiple windows/documents, 
  42. #    sophisticated memory management, printing, or undo. All of 
  43. #    these are vital parts of a normal full-sized application.
  44. #
  45. #    This application is an example of the form of a Macintosh 
  46. #    application; it is NOT a template. It is NOT intended to be 
  47. #    used as a foundation for the next world-class, best-selling, 
  48. #    600K application. A stick figure drawing of the human body may 
  49. #    be a good example of the form for a painting, but that does not 
  50. #    mean it should be used as the basis for the next Mona Lisa.
  51. #
  52. #    We recommend that you review this program or Sample before 
  53. #    beginning a new application. Sample is a simple app. which doesn╒t 
  54. #    use TextEdit or the Control Manager.
  55. #
  56.  
  57. #
  58. #    TESampleAUX exists because the Rez include files for A/UX 1.1
  59. #    are out of date.
  60. #
  61. ------------------------------------------------------------------------------*/
  62.  
  63. #define verUS    0
  64.  
  65. type 'vers' {
  66.         hex byte;                                                /* Major revision in BCD*/
  67.         hex byte;                                                /* Minor vevision in BCD*/
  68.         hex byte    development = 0x20,                            /* Release stage        */
  69.                     alpha = 0x40,
  70.                     beta = 0x60,
  71.                     final = 0x80, /* or */ release = 0x80;
  72.         hex byte;                                                /* Non-final release #    */
  73.         integer        Country;                                    /* Country code            */
  74.         pstring;                                                /* Short version number    */
  75.         pstring;                                                /* Long version number    */
  76. };
  77.  
  78. /*----------------------------SIZE MultiFinder Size Information-----------------------*/
  79. type 'SIZE' {
  80.         boolean                    dontSaveScreen,                    /* for SWITCHER         */
  81.                                 saveScreen;                        /*    compatibility        */
  82.         boolean                 ignoreSuspendResumeEvents,        /* suspend-resume        */
  83.                                 acceptSuspendResumeEvents;
  84.         boolean                    enableOptionSwitch,                /* for SWITCHER         */
  85.                                 disableOptionSwitch;            /*    compatibility        */
  86.         boolean                    cannotBackground,
  87.                                 canBackground;                    /* Can properly use back-
  88.                                                                    ground null events    */
  89.         boolean                    notMultiFinderAware,            /* activate/deactivate    */
  90.                                 multiFinderAware;                /* on resume/suspend    */
  91.         boolean                    backgroundAndForeground,        /* Application does not    */
  92.                                 onlyBackground;                    /* have a user interface*/
  93.         boolean                    dontGetFrontClicks,                /* Get mouse down/up    */
  94.                                 getFrontClicks;                    /* when suspended        */
  95.         boolean                    ignoreChildDiedEvents,            /* Apps use this.        */
  96.                                 acceptChildDiedEvents;            /* Debuggers use this.    */
  97.         boolean                    not32BitCompatible,                /* Works with 24bit addr*/
  98.                                 is32BitCompatible;                /* Works with 24 or 32    */
  99.                                                                 /* bit addresses        */
  100. #undef reserved
  101.         boolean                    reserved;                        /* These seven bits are */        
  102.         boolean                    reserved;                        /* reserved.  Set them    */
  103.         boolean                    reserved;                        /* to "reserved". When    */
  104.         boolean                    reserved;                        /* we decide to define    */
  105.         boolean                    reserved;                        /* a new flag, your        */
  106.         boolean                    reserved;                        /* old resource will     */
  107.         boolean                    reserved;                        /* still compile.        */
  108.         
  109.         /* Memory sizes are in bytes */
  110.         unsigned longint;                                        /* preferred mem size    */
  111.         unsigned longint;                                        /* minimum mem size        */
  112.  
  113.         /* If we ever define one of the seven reserved bits above, the "reserved"
  114.          enumeration wouldn't appear on the newly defined bit.  By defining "reserved"
  115.          below, old resource SIZE declarations will still compile. */
  116. #define    reserved        false
  117. };
  118.  
  119.     /* ignore the warning caused by re-defining SIZE */
  120.  
  121.  
  122.