home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / sys / mac / programm / 22336 < prev    next >
Encoding:
Text File  |  1993-01-28  |  1.4 KB  |  34 lines

  1. Newsgroups: comp.sys.mac.programmer
  2. 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
  3. From: salmon@cwis.unomaha.edu (David Salmon)
  4. Subject: Re: Custom defProc questions
  5. Message-ID: <1993Jan27.113751.13205@news.unomaha.edu>
  6. Sender: news@news.unomaha.edu (UNO Network News Server)
  7. Organization: University of Nebraska at Omaha
  8. References: <1993Jan25.214310.19476@midway.uchicago.edu>
  9. Date: Wed, 27 Jan 1993 11:37:51 GMT
  10. Lines: 22
  11.  
  12. I believe that the initCntrl message is sent when you call NewControl.
  13. This is before you have hacked the controlProc pointer. Therefore you
  14. need to call the init message yourself, immediately after NewControl.
  15. You should probably check the contrlData field or something to see if
  16. your control has been initialized (I'm not sure what other messages
  17. NewControl may send).
  18.  
  19. To draw an icon as a title of a popup menu, set aside some area of the 
  20. screen and draw the current selection. Nothing to do with the menu
  21. manager. Doesn't matter if it is text or what. If you want to draw an
  22. icon as the title of a menu in the menu bar, I think you have to 
  23. write an MBDF proc.
  24.  
  25. As a general rule in defprocs, ignore all messages your defproc doesn't
  26. understand. Some of these message (I presume) apple uses for special 
  27. purposes. Just return.
  28.  
  29. Hope this helps.
  30.  
  31. -- 
  32. David C. Salmon
  33. salmon@unomaha.edu
  34.