home *** CD-ROM | disk | FTP | other *** search
/ Otherware / Otherware_1_SB_Development.iso / mac / developm / source / sampleda.pit / SampleDA.pit / Sample.r < prev    next >
Encoding:
Text File  |  1985-11-16  |  1.1 KB  |  42 lines

  1. Sample
  2. DFILDMOV
  3.  
  4. *
  5. * Each DA has 32 reserved resource numbers, of the form:
  6. *            -16384 + (32*DAId) + n
  7. * where DAId is the ID Number of the Desk Accessory and
  8. * n is a number between 0 and 31.  Since the DA is initially
  9. * created with DRVR Id 31, these numbers are -15392 through
  10. * -15361.  These are used as follows:
  11. *        0    -15392    Menu
  12. *        1    -15391    About.. picture, if desired
  13. *        2    -15390    Not Used
  14. *       ..
  15. *       31    -15361    Not used
  16. * These resource numbers are automatically recalculated
  17. * if the DRVR Id is changed by the Font/DA Mover.  See the
  18. * code in drvrOpen.
  19. *
  20.  
  21. * Note that you shouldn't put check marks here if you have them,
  22. * as the Menu is NOT reloaded each time the DA is restarted.  Thus,
  23. * any previous checked, unchecked or modified items would remain
  24. * that way.  The DA initialization should do any necessary enabling,
  25. * disabling, or checking.
  26.  
  27. TYPE MENU
  28. Sample Menu,-15392
  29. Sample
  30. Quit
  31. (-
  32. About Sample...
  33.  
  34. INCLUDE Sample.code
  35.  
  36. *
  37. * If you have other resources to load, you can create a resource
  38. * file using ResEdit and include it here:
  39. *
  40. *     INCLUDE Sample.rsrc
  41. *
  42.