home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / sys / mac / programm / 18186 < prev    next >
Encoding:
Text File  |  1992-11-09  |  1.8 KB  |  53 lines

  1. Newsgroups: comp.sys.mac.programmer
  2. Path: sparky!uunet!meaddata!pdd
  3. From: pdd@meaddata.com (Paul Darata)
  4. Subject: Help! Tear-off menu in TCL doesn't appear
  5. Sender: news@meaddata.com (Usenet Administrator)
  6. Organization: Mead Data Central, Dayton OH
  7. Date: Mon, 9 Nov 1992 16:32:54 GMT
  8. Message-ID: <1992Nov9.163254.21019@meaddata.com>
  9. Reply-To: pdd@farside.meaddata.com
  10. Distribution: usa
  11. Lines: 40
  12.  
  13.  
  14. I am  trying to create an additional tear-off menu in a program similar
  15. to the Art Class demo in Think C.  I have been unable to get the tear-off
  16. menu to appear.  The new tear-off is a hierarchical sub-menu.  This is
  17. what I have done so far:
  18.  
  19.     o   created a new class which is a copy of the ToolsDir.C file provided
  20.         in the Art Class demo
  21.  
  22.     o   modified the code to look for a different 'ChGd' resource
  23.  
  24.     o   added a new menu item to an existing menu with the new tear-off menu
  25.         as the submenu
  26.  
  27.     o   created a new empty menu for the new tear-off
  28.  
  29.     o   created the new 'ChGd' resource using ResEdit (I also changed the
  30.         field with the menu number to the new tear-off)
  31.  
  32.     o   created a new MDEF resource
  33.  
  34.     o   at run-time the menu item and the tear-off menu menu are enabled
  35.  
  36. And then nothing happens when I highlight the new menu item.  What have I
  37. missed?  I also moved the original "Tools" tear-off to act as a hierarchical
  38. menu and it works fine.  Any help will be greatly appreciated.
  39.  
  40.  
  41.  
  42. ----------------------------------------------------------
  43. Paul Darata                       pdd@farside.meaddata.com
  44. Mead Data Central           ...!uunet!meaddata!farside!pdd
  45. P.O. Box 933                     meaddata!pdd@uunet.uu.net
  46. Dayton, OH  45401
  47. (513) 865-7756            #include <std.disclaimer>
  48.  
  49.   "... as for me and my house, we will serve the Lord."
  50.          Joshua 24:15
  51. ----------------------------------------------------------
  52.  
  53.