home *** CD-ROM | disk | FTP | other *** search
- 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
- From: KVICTOR@AppleLink.Apple.COM (Victor Consulting, Ken Victor,PAS)
- Newsgroups: comp.sys.mac.oop.macapp3
- Subject: Re2: TPopup not drawing proper
- Message-ID: <725768366.1207746@AppleLink.Apple.COM>
- Date: 31 Dec 92 02:12:00 GMT
- Sender: daemon@Apple.COM
- Organization: AppleLink Gateway
- Lines: 69
-
- here's a copy of the response i got from matt clark (thank you) and my response
- to him.
-
- >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
- Item 6800549 29-Dec-92 09:18PST
-
- From: D3423 MapPower, Victor Siegle,PRT
-
- To: KVICTOR Victor Consulting, Ken Victor,PAS
-
- ------------------------------------------------------------------------------
-
- Sub: Re: TPopup not drawing properl
-
- I have had this problem in the past. I remember it beling related to not
- having the Popup 'MENU' resource number listed under the 'MBAR' resource.
- Here's a snippet from an application of ours.
-
- // file: App.h
- #define mPreferences 28 //Preferences
- #define mHlpFontName 1000 //help font name
- #define mHlpFontSize 1001 //help font size
-
- // file: MApp.r
- resource 'MBAR' (kMBarHierarchical, "kMBarHierarchical")) {
- { //pull-right menus
- mPreferences;
- //popups
- mHlpFontName; mHlpFontSize; // LIST ALL POPUPS USED HERE
- }
- };
-
- Also, don't forget to make the MenuID equal to the menu resource number
- (modifiable using ResEdit).
-
- Good luck.
-
- Matt Clark, MapPower, AppleLink:D3423
-
- >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
- Item 0598836 30-Dec-92 18:04PST
-
- From: KVICTOR Victor Consulting, Ken Victor,PAS
-
- To: D3423 MapPower, Victor Siegle,PRT
-
- ------------------------------------------------------------------------------
-
- Sub: Re2: TPopup not drawing proper
-
- Matt,
-
- thanx for your link re: popups not drawing properly. it fixed my problem!!!
-
- The real problem was that my popups had a menuID and resource number <
- mLastMenu. When I increased this to 1000+ it solved my problem.
-
- BTW, in MacAPP 2, popups needed to be in the kMBarNotDisplayed MBAR resource
- and NOT in the kMBarHierarchical resource. If they were, you would get
- unexplained crashes when dismissing a dialog that had popups. I haven't looked
- at the MacApp 3 code to know if this is still the case. But, they seem to work
- properly in kMBarNotDisplayed. (They also seemed to work in kMBarHierarchical
- as in your example, but i personally feel more comfortable with them in
- kMBarNotDisplayed).
-
- Thanx again,
- Ken Victor
-
-
-