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

  1. Newsgroups: comp.sys.mac.programmer
  2. Path: sparky!uunet!digex.com!intercon!udel!darwin.sura.net!spool.mu.edu!uwm.edu!linac!pacific.mps.ohio-state.edu!cis.ohio-state.edu!news.sei.cmu.edu!bb3.andrew.cmu.edu!crabapple.srv.cs.cmu.edu!kjh
  3. From: kjh+@cs.cmu.edu (Kenneth Hughes)
  4. Subject: Re: When is a menu disabled? (enableFlags isn't all)
  5. Message-ID: <C1Ivqs.83n.1@cs.cmu.edu>
  6. Keywords: windowKind, dialogKind, modal, FrontWindow
  7. Sender: news@cs.cmu.edu (Usenet News System)
  8. Nntp-Posting-Host: tr4.gp.cs.cmu.edu
  9. Organization: School of Computer Science, Carnegie Mellon
  10. References: <walkerj.728102613@milo.math.scarolina.edu> <toge-270193142420@130.87.65.24>
  11. Date: Wed, 27 Jan 1993 17:11:10 GMT
  12. Lines: 24
  13.  
  14.  
  15. Nobu Toge (Nat'l Lab for High Energy Physics) (toge@kekvax.kek.ac.jp) wrote:
  16. > walkerj@math.scarolina.edu (Jim Walker) wrote:                     
  17. > >                        
  18. > > I can't think of any good way to tell when a modal dialog is in
  19. > > front, either.
  20. > >                                                   
  21. > Call _FrontWindow or look up WindowList and look at the windowKind of
  22. > the front-most window.  You can judge by looking whether it's dialogKind 
  23. > or others.  I'm using this in my init and it works rather nicely.
  24.  
  25. I do not think this speaks to whether the front window is being modally
  26. displayed, only whether it's a dialog/alert (dialogKind), system window/DA
  27. ( < 0), or app window (userKind).
  28.  
  29. Any other ideas, or did I miss Nobu Toge's point?
  30. I'm interested in how to determine this too.
  31.  
  32.  
  33. -- 
  34. Kenneth J. Hughes     (kjh@cs.cmu.edu)
  35. Entelechy Corporation
  36.