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

  1. Newsgroups: comp.sys.mac.programmer
  2. Path: sparky!uunet!pageworks.com!world!eff!sol.ctr.columbia.edu!zaphod.mps.ohio-state.edu!swrinde!cs.utexas.edu!sun-barr!sh.wide!wnoc-tyo-news!news.u-tokyo.ac.jp!s.u-tokyo!kekux!NewsWatcher!user
  3. From: toge@kekvax.kek.ac.jp (Nobu Toge)
  4. Subject: Re: When is a menu disabled? (enableFlags isn't all)
  5. Message-ID: <toge-270193142420@130.87.65.24>
  6. Followup-To: comp.sys.mac.programmer
  7. Sender: news@kekux.kek.ac.jp (USENET News System)
  8. Nntp-Posting-Host: 130.87.65.24
  9. Organization: KEK
  10. References: <walkerj.728102613@milo.math.scarolina.edu>
  11. Date: Wed, 27 Jan 1993 05:32:22 GMT
  12. Lines: 19
  13.  
  14. In article <walkerj.728102613@milo.math.scarolina.edu>,
  15. walkerj@math.scarolina.edu (Jim Walker) wrote:
  16.  
  17. > I can't think of any good way to tell when a modal dialog is in
  18. > front, either.
  19.  
  20. Call _FrontWindow or look up WindowList and look at the windowKind of
  21. the front-most window.  You can judge by looking whether it's dialogKind 
  22. or others.  I'm using this in my init and it works rather nicely.
  23.  
  24. Re: enableFlags: I don't know except possibly to patch EnableItem and
  25. DisableItem and keep track of menu dis/enable actions.  Pretty ug.
  26.  
  27. - Nobu Toge (Nat'l Lab for High Energy Physics)
  28. - toge@kekvax.kek.ac.jp
  29.  
  30. #include <StandardDisclaimers.h>
  31.