home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / sys / mac / oop / macapp3 / 322 < prev    next >
Encoding:
Internet Message Format  |  1992-12-30  |  2.7 KB

  1. Path: sparky!uunet!zaphod.mps.ohio-state.edu!magnus.acs.ohio-state.edu!usenet.ins.cwru.edu!agate!spool.mu.edu!olivea!apple!applelink.apple.com
  2. From: KVICTOR@AppleLink.Apple.COM (Victor Consulting, Ken Victor,PAS)
  3. Newsgroups: comp.sys.mac.oop.macapp3
  4. Subject: Re2: TPopup not drawing proper
  5. Message-ID: <725768366.1207746@AppleLink.Apple.COM>
  6. Date: 31 Dec 92 02:12:00 GMT
  7. Sender: daemon@Apple.COM
  8. Organization: AppleLink Gateway
  9. Lines: 69
  10.  
  11. here's a copy of the response i got from matt clark (thank you) and my response
  12. to him.
  13.  
  14. >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
  15. Item    6800549                         29-Dec-92        09:18PST
  16.  
  17. From:   D3423                           MapPower, Victor Siegle,PRT
  18.  
  19. To:     KVICTOR                         Victor Consulting, Ken Victor,PAS
  20.  
  21. ------------------------------------------------------------------------------
  22.  
  23. Sub:    Re: TPopup not drawing properl
  24.  
  25. I  have had this problem in the past.  I remember it beling related to not
  26. having the Popup 'MENU' resource number listed under the 'MBAR' resource.
  27. Here's a snippet from an application of ours.
  28.  
  29. //  file: App.h
  30. #define mPreferences   28    //Preferences
  31. #define mHlpFontName   1000  //help font name
  32. #define mHlpFontSize   1001  //help font size
  33.  
  34. //  file: MApp.r
  35. resource 'MBAR' (kMBarHierarchical, "kMBarHierarchical")) {
  36.    { //pull-right menus
  37.      mPreferences;
  38.      //popups
  39.      mHlpFontName; mHlpFontSize;       //   LIST ALL POPUPS USED HERE
  40.    }
  41. };
  42.  
  43. Also, don't forget to make the MenuID equal to the menu resource number
  44. (modifiable using ResEdit).
  45.  
  46. Good luck.
  47.  
  48. Matt Clark, MapPower, AppleLink:D3423
  49.  
  50. >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
  51. Item    0598836                         30-Dec-92        18:04PST
  52.  
  53. From:   KVICTOR                         Victor Consulting, Ken Victor,PAS
  54.  
  55. To:     D3423                           MapPower, Victor Siegle,PRT
  56.  
  57. ------------------------------------------------------------------------------
  58.  
  59. Sub:    Re2: TPopup not drawing proper
  60.  
  61. Matt,
  62.  
  63. thanx for your link re: popups not drawing properly.  it fixed my problem!!!
  64.  
  65. The real problem was that my popups had a menuID and resource number <
  66. mLastMenu.  When I increased this to 1000+ it solved my problem.
  67.  
  68. BTW, in MacAPP 2, popups needed to be in the kMBarNotDisplayed MBAR resource
  69. and NOT in the kMBarHierarchical resource.  If they were, you would get
  70. unexplained crashes when dismissing a dialog that had popups.  I haven't looked
  71. at the MacApp 3 code to know if this is still the case.  But, they seem to work
  72. properly in kMBarNotDisplayed.  (They also seemed to work in kMBarHierarchical
  73. as in your example, but i personally feel more comfortable with them in
  74. kMBarNotDisplayed).
  75.  
  76. Thanx again,
  77. Ken Victor
  78.  
  79.  
  80.