Path: utzoo!attcan!uunet!husc6!bloom-beacon!tut.cis.ohio-state.edu!mailrus!ames!pasteur!agate!spam!lippin From: lippin@spam.berkeley.edu (The Apathist) Newsgroups: comp.sys.mac.programmer Subject: Custom menu bars Message-ID: <10241@agate.BERKELEY.EDU> Date: 24 May 88 00:59:48 GMT Sender: usenet@agate.BERKELEY.EDU Reply-To: lippin@math.berkeley.edu Organization: Authorized Service, Incorporated Lines: 17 I started working on a custom MBDF yesterday, and so for the first time closely examined that part of IM V's menu manager chapter. The MBDF is to be declared as returning a LONGINT, but one of the messages, GetRect (or just Rect, depending on where you look) would have it return a Rect. Now, last I heard, Pascal doesn't have provisions for returning record types, but I can ignore that, because I'm writing in C. But I still can't cram a Rect into a LONGINT; it's just too big. I also thought of returning a pointer to the Rect, but then where would I put the Rect? In the MBDF's copious global storage? Or on the heap, where it might never be disposed of? Anyone know what the deal is here? --Tom Lippincott ..ucbvax!math!lippin "We DEMAND solid facts!" --Vroomfondel