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

  1. Newsgroups: comp.sys.mac.programmer
  2. Path: sparky!uunet!zaphod.mps.ohio-state.edu!magnus.acs.ohio-state.edu!jbush
  3. From: jbush@magnus.acs.ohio-state.edu (J Eric Bush)
  4. Subject: Re: multifinder switching
  5. Message-ID: <1992Sep4.072837.5604@magnus.acs.ohio-state.edu>
  6. Sender: news@magnus.acs.ohio-state.edu
  7. Nntp-Posting-Host: bottom.magnus.acs.ohio-state.edu
  8. Organization: The Ohio State University
  9. References: <9209031818.aa13404@Paris.ics.uci.edu>
  10. Date: Fri, 4 Sep 1992 07:28:37 GMT
  11. Lines: 24
  12.  
  13.  
  14. { Code deleted from original post }
  15.  
  16. To get your program ro recognize other windows, you might need to add
  17. this to your HandleMouse routine:
  18.  
  19.  case inSysWindow:
  20.       SystemClick(&gTheEvent, whichWindow);
  21.       break;
  22.  
  23.  case inContent:
  24.       if whichWindow <> FrontWindow then
  25.          SelectWindow(whichWindow);
  26.  
  27. Note: the inContent code is in Pascal format, you may need to change it
  28.       some to work in C.
  29.  
  30. The multifinder gets its activity time from your application if it is the
  31. front application.  I would suggest looking at the setting of your sleep
  32. variable.  It should be around 60.
  33. -- 
  34. ------------------------------------------------------------------------------
  35. J. Eric Bush
  36. Internet: jbush@magnus.acs.ohio-state.edu
  37.