Xref: utzoo comp.sys.mac.programmer:16593 comp.sys.mac.misc:2117 Path: utzoo!utgpu!news-server.csri.toronto.edu!mailrus!cs.utexas.edu!sdd.hp.com!decwrl!ads.com!potomac!adiseker From: adiseker@potomac.ads.com (Andrew Diseker) Newsgroups: comp.sys.mac.programmer,comp.sys.mac.misc Subject: MBAR question Keywords: MBAR resource problems Message-ID: <9025@potomac.ads.com> Date: 10 Aug 90 03:10:07 GMT Reply-To: adiseker@potomac.ads.com (Andrew Diseker) Followup-To: comp.sys.mac.programmer Distribution: na Organization: Advanced Decision Systems, Arlington VA Lines: 33 Howdy, I'm having a minor problem using an MBAR resource. I used ResEdit to create the MBAR and it's menus, making sure resource ID's matched where they should. I'm using the system MDEF, straight text for the menu entries, nothing funky at all. My test program calls all the Mac initializations, calls GetNewMBar with the right resource number, and calls SetMenuBar using the handle just returned ( non-NULL ). The problem is in my event loop, when I check for mouse clicks. I call FindWindow with the event.where point, straight from GetNextEvent, and FindWindow insists that mouse clicks in the menubar are inDesk, not inMenu. I don't have any windows open (yet), could this be a problem? Do I have to "destroy" the original menubar first? What am I missing? Any help would be appreciated, such as TFM to R. I've been through IM I-V, Macintosh Revealed 1-4, "On Macintosh Programming: Advanced Techniques", and "Using the Macintosh Toolbox with C", and they all say basically the same: "Trust us, it works the way we tell you." Grumble, grumble, gnash. Specs: Mac II, 6.0.5, Multifinder, ThinkC 4.0, BS CS 1984 Eastern Kentucky University ( Go Colonels B^) B^) B^) Thanks, Andrew -- Andrew Diseker >Advanced Decision Systems >UUCP: sun!sundc!potomac!adiseker >Internet:adiseker@potomac.ads.com "Indeed, many respected computer scientists have difficulty with left and right even though they can manage the logical con- nectives and can be left to write left to right the right Boolean operations"