🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.mac
Article #25665

MBarHook/MenuHook routines in LSC

#25665
From: Steven D. Leeke
Date: Thu, 25 Feb 1988 18:35
39 lines
1194 bytes
Has anyone written any routines in LSC for MBarHook or MenuHook?  I have
been unsuccessful so far.  I tried:

MenuHook	=	menuHook;

void menuHook()
{

};

and

MBarHook	=	menuBarHook;

int menuBarHook(menuRect)
Rect	*menuRect;
{

	return(0); /* in D0 */
};


They don't seem to need to be Pascal routines even though MBarHook and
MenuHook are ProcPtr types.  I tried declaring the fctn's as they are above
but adding "pascal" and it didn't work.  I also tried declaring both as
pascal int - no luck.

Any ideas?

Steve Leeke
CIS
Stanford University

-- 
Steven D. Leeke, Center for Integrated Systems, Stanford University
    {ucbvax,decvax}!decwrl!glacier!leeke, leeke@glacier.stanford.edu

"I suppose they don't use money in the 23rd century?"
Technical Details
Message-ID: <17324@glacier.STANFORD.EDU>
Path: arc1-ca.pugleaf.net!utzoo!mnetor!uunet!lll-winken!lll-lcc!ames!pasteur!ucbvax!hplabs!decwrl!labrea!glacier!leeke

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!mnetor!uunet!lll-winken!lll-lcc!ames!pasteur!ucbvax!hplabs!decwrl!labrea!glacier!leeke
From: leeke@glacier.STANFORD.EDU (Steven D. Leeke)
Newsgroups: comp.sys.mac
Subject: MBarHook/MenuHook routines in LSC
Message-ID: <17324@glacier.STANFORD.EDU>
Date: 25 Feb 88 18:35:21 GMT
Reply-To: leeke@glacier.UUCP (Steven D. Leeke)
Distribution: na
Organization: Stanford University
Lines: 37