home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.mac.programmer
- Path: sparky!uunet!ferkel.ucsb.edu!taco!gatech!udel!bogus.sura.net!howland.reston.ans.net!spool.mu.edu!sol.ctr.columbia.edu!news.unomaha.edu!cwis.unomaha.edu!salmon
- From: salmon@cwis.unomaha.edu (David Salmon)
- Subject: Re: Custom defProc questions
- Message-ID: <1993Jan27.113751.13205@news.unomaha.edu>
- Sender: news@news.unomaha.edu (UNO Network News Server)
- Organization: University of Nebraska at Omaha
- References: <1993Jan25.214310.19476@midway.uchicago.edu>
- Date: Wed, 27 Jan 1993 11:37:51 GMT
- Lines: 22
-
- I believe that the initCntrl message is sent when you call NewControl.
- This is before you have hacked the controlProc pointer. Therefore you
- need to call the init message yourself, immediately after NewControl.
- You should probably check the contrlData field or something to see if
- your control has been initialized (I'm not sure what other messages
- NewControl may send).
-
- To draw an icon as a title of a popup menu, set aside some area of the
- screen and draw the current selection. Nothing to do with the menu
- manager. Doesn't matter if it is text or what. If you want to draw an
- icon as the title of a menu in the menu bar, I think you have to
- write an MBDF proc.
-
- As a general rule in defprocs, ignore all messages your defproc doesn't
- understand. Some of these message (I presume) apple uses for special
- purposes. Just return.
-
- Hope this helps.
-
- --
- David C. Salmon
- salmon@unomaha.edu
-