home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / sys / mac / programm / 14385 < prev    next >
Encoding:
Text File  |  1992-08-23  |  995 b   |  30 lines

  1. Newsgroups: comp.sys.mac.programmer
  2. Path: sparky!uunet!decwrl!csus.edu!netcom.com!gurgle
  3. From: gurgle@netcom.com (Pete Gontier)
  4. Subject: Re: DeleteMenu doesn't work
  5. Message-ID: <c2-nd4.gurgle@netcom.com>
  6. Date: Sun, 23 Aug 92 19:50:54 GMT
  7. Organization: cellular
  8. References: <14504@mindlink.bc.ca>
  9. Lines: 19
  10.  
  11. Daryl_Spitzer@mindlink.bc.ca (Daryl Spitzer) writes:
  12.  
  13. >I can seems to remove the menu from the bar.
  14.  
  15. >        hMenu = GetMenu( 901 );
  16. >        InsertMenu( hMenu, 0 );
  17. >        DrawMenuBar();
  18. >        DeleteMenu( 901 );
  19. >        DrawMenuBar();
  20.  
  21. >Everything works fine, except the menu is still there when the menu bar is
  22.  
  23. Probably the menu ID *within* your menu resource does not match the resource
  24. ID. The resource ID is how you refer to your menu when calling GetMenu,
  25. and the menu ID (*within* the menu resource) is how you refer to the
  26. menu thereafter. I know it's stupid, but them's the breaks. Open up ResEdit
  27. and take a look.
  28. -- 
  29.  Pete Gontier // EC Technology // gurgle@netcom.com
  30.