home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / sys / mac / programm / 14939 < prev    next >
Encoding:
Text File  |  1992-09-03  |  1.2 KB  |  30 lines

  1. Newsgroups: comp.sys.mac.programmer
  2. Path: sparky!uunet!amgen!nuntius
  3. From: Michael Brennan <mikeb@sam.amgen.com>
  4. Subject: Re: little sys 7 pop up problem (popupMenuCDEFProc)
  5. Message-ID: <1992Sep2.220107.10913@amgen.com>
  6. Sender: news@amgen.com
  7. Nntp-Posting-Host: swalker
  8. Organization: Amgen
  9. X-Useragent: Nuntius v1.1
  10. References: <zocca-250892113905@jozef.amc.uva.nl>
  11. Date: Wed, 2 Sep 1992 22:01:07 GMT
  12. Lines: 16
  13.  
  14. In article <zocca-250892113905@jozef.amc.uva.nl> Vincent Zocca,
  15. zocca@amc.uva.nl writes:
  16. >So, I've got this problem with system 7's Pop-Up controls.
  17. >I create one with NewControl and popupMenuCDEFProc (IM VI 3-16). That
  18. works
  19. >fine; The control is displayed and the value (selection of a menu item)
  20. and
  21. >hilite status can be set. The 'only' thing is that the control is not
  22. >tracked properly by TrackControl. 
  23.  
  24. This is a common problem.  When you call TrackControl, be sure to use -1L
  25. as your final parameter (e.g., TrackControl( theControl, localPt,
  26. (ProcPtr) -1L )).  If you are using 0 for the final parameter, than this
  27. is why it is not working for you.  The -1L indicates that the CDEF
  28. employs a custom tracking procedure.  Be sure to cast it as a ProcPtr to
  29. keep the compiler happy!
  30.