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