home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 5 / Apprentice-Release5.iso / Source Code / C++ / Frameworks / Argus Frameworks 2.1 / Argus Starter 2.1 / Main / MainBalloons.r < prev    next >
Encoding:
Text File  |  1996-01-04  |  6.2 KB  |  248 lines  |  [TEXT/KAHL]

  1. /**********************************************************************
  2.  
  3.     MainBalloons.r
  4.  
  5. ***********************************************************************/
  6.  
  7. #include <Types.r>
  8. #include <BalloonTypes.r>
  9.  
  10. resource 'hmnu' (400, "Apple", purgeable) {
  11. /* header component */
  12.   HelpMgrVersion,    /* version of Help Manager */
  13.   hmDefaultOptions,  /* options */
  14.   0,                 /* balloon definition function */
  15.   0,                 /* variation code */
  16.   
  17. /* missing-items component */
  18.   HMSkipItem {
  19.     /* no missing items, so skip to menu-title component */
  20.     },
  21.  
  22. /* BEGIN */ {
  23.  
  24. /* menu-title component */
  25.   HMSkipItem {
  26.     /* Apple menu has default help balloons */
  27.     },
  28.     
  29. /* first menu-item component: About */
  30.   HMStringItem {
  31.     /* enabled */
  32.     "Displays information about this application.",
  33.     /* dimmed by application */
  34.     "",
  35.     /* checked */
  36.     "",
  37.     /* marked */
  38.     "",
  39.     },
  40.     
  41. /* END */ }
  42. };
  43.  
  44. resource 'hmnu' (401, "File", purgeable) {
  45. /* header component */
  46.   HelpMgrVersion,    /* version of Help Manager */
  47.   hmDefaultOptions,  /* options */
  48.   0,                 /* balloon definition function */
  49.   0,                 /* variation code */
  50.   
  51. /* missing-items component */
  52.   HMSkipItem {
  53.     /* no missing items, so skip to menu-title component */
  54.     },
  55.  
  56. /* BEGIN */ {
  57.  
  58. /* menu-title component */
  59.   HMStringItem {
  60.     /* enabled */
  61.     "File menu\n\nUse this menu to open documents or quit "
  62.     "this application.",
  63.     /* dimmed by application */
  64.     "",
  65.     /* dimmed by system (alerts or modal dialogs) */
  66.     "File menu\n\nUse this menu to open documents or quit "
  67.     "this application. Not available because there is a dialog box "
  68.     "on the screen.",
  69.     /* all items dimmed by system */
  70.     "This item is not available because there is a dialog "
  71.     "box on the screen.",
  72.     },
  73.     
  74. /* first menu-item component: New */
  75.   HMStringItem {
  76.     /* enabled */
  77.     "Creates new document window.",
  78.     /* dimmed by application */
  79.     "",
  80.     /* checked */
  81.     "",
  82.     /* marked */
  83.     "",
  84.     },
  85.  
  86. /* second menu-item component: Close */
  87.   HMStringItem {
  88.     /* enabled */
  89.     "Closes current document window.",
  90.     /* dimmed by application */
  91.     "Closes current document window. Not available now "
  92.     "because the application does not currently have an "
  93.     "open window.",
  94.     /* checked */
  95.     "",
  96.     /* marked */
  97.     "",
  98.     },
  99.  
  100. /* third menu-item component: Quit */
  101.   HMStringItem {
  102.     /* enabled */
  103.     "Quits this application.",
  104.     /* dimmed by application */
  105.     "",
  106.     /* checked */
  107.     "",
  108.     /* marked */
  109.     "",
  110.     },
  111.     
  112. /* END */ }
  113. };
  114.  
  115. resource 'hmnu' (402, "Edit", purgeable) {
  116. /* header component */
  117.   HelpMgrVersion,    /* version of Help Manager */
  118.   hmDefaultOptions,  /* options */
  119.   0,                 /* balloon definition function */
  120.   0,                 /* variation code */
  121.   
  122. /* missing-items component */
  123.   HMSkipItem {
  124.     /* no missing items, so skip to menu-title component */
  125.     },
  126.  
  127. /* BEGIN */ {
  128.  
  129. /* menu-title component */
  130.   HMStringItem {
  131.     /* enabled */
  132.     "Edit menu\n\nUse this menu to manipulate text.",
  133.     /* dimmed by application */
  134.     "Edit menu\n\nUse this menu to manipulate text. "
  135.     "Not available because there is nothing to edit.",
  136.     /* dimmed by system (alerts or modal dialogs) */
  137.     "Edit menu\n\nUse this menu to manipulate text. "
  138.     "Not available because there is a dialog box on "
  139.     "the screen.",
  140.     /* all items dimmed by system */
  141.     "This item is not available because there is a dialog "
  142.     "box on the screen.",
  143.     },
  144.     
  145. /* first menu-item component: Undo */
  146.   HMStringItem {
  147.     /* enabled */
  148.     "Cancels your last edit.",
  149.     /* dimmed by application */
  150.     "Cancels your last edit. Not available because "
  151.     "application doesn't support this function.",
  152.     /* checked */
  153.     "",
  154.     /* marked */
  155.     "",
  156.     },
  157.     
  158. /* second menu-item component: Divider */
  159.   HMSkipItem {
  160.     /* no help balloons for divider lines */
  161.     },
  162.     
  163. /* third menu-item component: Cut */
  164.   HMStringItem {
  165.     /* enabled */
  166.     "Cuts selected text to the Clipboard.",
  167.     /* dimmed by application */
  168.     "Cuts selected text to the Clipboard. Not available now "
  169.     "because no text is selected.",
  170.     /* checked */
  171.     "",
  172.     /* marked */
  173.     "",
  174.     },
  175.  
  176. /* forth menu-item component: Copy */
  177.   HMStringItem {
  178.     /* enabled */
  179.     "Copies selected text to the Clipboard.",
  180.     /* dimmed by application */
  181.     "Copies selected text to the Clipboard. Not available now "
  182.     "because no text is selected.",
  183.     /* checked */
  184.     "",
  185.     /* marked */
  186.     "",
  187.     },
  188.  
  189. /* fifth menu-item component: Paste */
  190.   HMStringItem {
  191.     /* enabled */
  192.     "Inserts selected text from the Clipboard.",
  193.     /* dimmed by application */
  194.     "Inserts selected text from the Clipboard. Not available "
  195.     "now because there is no text currently in the Clipboard.",
  196.     /* checked */
  197.     "",
  198.     /* marked */
  199.     "",
  200.     },
  201.  
  202. /* sixth menu-item component: Clear */
  203.   HMStringItem {
  204.     /* enabled */
  205.     "Deletes selected text.",
  206.     /* dimmed by application */
  207.     "Deletes selected text. Not available now "
  208.     "because no text is selected.",
  209.     /* checked */
  210.     "",
  211.     /* marked */
  212.     "",
  213.     },
  214.     
  215. /* END */ }
  216. };
  217.  
  218. resource 'hmnu' (kHMHelpMenuID, "Help", purgeable)
  219. {
  220.     HelpMgrVersion, 0, 0, 0,  /* header component             */
  221.     HMSkipItem{               /* missing-items component      */
  222.         /* no missing items, skip to first appended menu-item */
  223.         /* component                                          */
  224.         },
  225.     {   /* first menu-item component */
  226.         HMStringResItem{  /* use an 'STR#' for help messages  */
  227.         800, 1,  /* 'STR#' res ID, index when item is enabled */
  228.         800, 2,  /* 'STR#' res ID, index when item is dimmed  */
  229.         800, 3,  /* 'STR#' res ID, index when item is checked */
  230.         0, 0     /* item cannot be marked */
  231.         },
  232.     }
  233. };
  234.  
  235. resource 'STR#' (800, "Help menu item strings")
  236. {
  237.     {
  238.         /* array StringArray: six elements */
  239.         /* [1] enabled help command */
  240.         "Provides help for this application.";
  241.         /* [2] dimmed help command */
  242.         "Provides help for this application.";
  243.         /* [3] checked help command */
  244.         "Provides help for this application.";
  245.     }
  246. };
  247.  
  248. // End of File