home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / sys / mac / programm / 14799 < prev    next >
Encoding:
Text File  |  1992-08-31  |  1.4 KB  |  36 lines

  1. Newsgroups: comp.sys.mac.programmer
  2. Path: sparky!uunet!sun-barr!cs.utexas.edu!wupost!sdd.hp.com!ux1.cso.uiuc.edu!news.cso.uiuc.edu!resnick
  3. From: resnick@cogsci.uiuc.edu (Pete Resnick)
  4. Subject: Re: Popup menus (help!!)
  5. References: <1992Aug31.173244.1282@sagpd1>
  6. Message-ID: <BtvFoB.L5J@news.cso.uiuc.edu>
  7. Sender: usenet@news.cso.uiuc.edu (Net Noise owner)
  8. Organization: University of Illinois at Urbana
  9. Date: Mon, 31 Aug 1992 23:24:09 GMT
  10. Keywords: popup
  11. Lines: 23
  12.  
  13. bberqu@sagpd1 () writes:
  14.  
  15. >I have three popup menus within a dialog box and am trying to figure out
  16. >the best way to handle them, I know system 7 has support for them, but 
  17. >I would like my application to work with earlier versions of the OS also.
  18.  
  19. Suggestion 1: use the pop-up menu CDEF included with the System 6
  20. Communications Toolbox for pre-System 7 machines.
  21.  
  22. >It seems like all I should have to do to handle popup menus is when 
  23. >ModalDialog detects an event within the dialog it should pass the 
  24. >information to my filterProc function. If I know where the event happened 
  25. >and the dialog pointer I could call FindControl which would return me the 
  26. >control....
  27.  
  28. More likely, you want to call FindDItem, not FindControl.
  29.  
  30. pr
  31. -- 
  32. Pete Resnick             (...so what is a mojo, and why would one be rising?)
  33. Graduate assistant - Philosophy Department, Gregory Hall, UIUC
  34. System manager - Cognitive Science Group, Beckman Institute, UIUC
  35. Internet: resnick@cogsci.uiuc.edu
  36.