home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.mac.programmer
- Path: sparky!uunet!caen!nic.umass.edu!titan.ucc.umass.edu!rjr
- From: rjr@titan.ucc.umass.edu (Richard J. Resnick)
- Subject: Beginner's Hierarchical Menu Problem
- Message-ID: <BzKItx.qs@nic.umass.edu>
- Sender: usenet@nic.umass.edu (USENET News System)
- Organization: University of Massachusetts, Amherst
- Date: Sun, 20 Dec 1992 17:20:21 GMT
- Lines: 30
-
- I am returning to the Mac environment, and getting stuck (as usual) on
- what seem to be trivialities.
-
- I am trying to make a simple FONT menu, which will be a hierarchical
- menu under a menu called SPECIAL. I built the resources correctly, and
- the FONT menu, res_id = 100, was built empty in the resource editor,
- so that I could call AddResMenu to load it up.
-
- My code looks something like this:
-
- (*Loads up the Desk Accesories in the Apple Menu*)
- aMenu := GetMHandle(APPLE_MENU_ID);
- AddResMenu(aMenu, 'DRVR');
-
- (*Tries to load up the Fonts in the FONT_MENU*)
- aMenu := GetMHandle(FONT_MENU_ID);
- InsertMenu(aMenu, -1);
- AddResMenu(aMenu, 'FONT');
-
- The error that I get when I run this under Think Pascal is "Think
- Pascal unexpectedly quit", and when I build the application and run
- it, I get a missing coprocessor error. I didn't think that any of
- these routines called for a coprocessor!!
-
- In terms of system: I am running an ugly Mac Classic, 4megs of ram,
- with no real upgrades of any sort. System 6.07.
-
- Thanks in advance for any help you can give me.
-
- Richard Resnick
-