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

  1. Newsgroups: comp.sys.mac.programmer
  2. Path: sparky!uunet!digex.com!intercon!udel!bogus.sura.net!opusc!usceast!walkerj
  3. From: walkerj@math.scarolina.edu (Jim Walker)
  4. Subject: Re: When is a menu disabled? (enableFlags isn't all)
  5. Message-ID: <walkerj.728144645@milo.math.scarolina.edu>
  6. Sender: usenet@usceast.cs.scarolina.edu (USENET News System)
  7. Organization: USC  Department of Computer Science
  8. References: <walkerj.728102613@milo.math.scarolina.edu> <toge-270193142420@130.87.65.24>
  9. Date: 27 Jan 93 14:24:05 GMT
  10. Lines: 15
  11.  
  12. In <toge-270193142420@130.87.65.24> toge@kekvax.kek.ac.jp (Nobu Toge) writes:
  13.  
  14. >> I can't think of any good way to tell when a modal dialog is in
  15. >> front, either.
  16.  
  17. >Call _FrontWindow or look up WindowList and look at the windowKind of
  18. >the front-most window.  You can judge by looking whether it's dialogKind 
  19. >or others.  I'm using this in my init and it works rather nicely.
  20.  
  21. dialogKind does not distinguish between modal dialogs and modeless or
  22. movable modal dialogs.  It appears that spareFlag is true for modal dialogs
  23. and false for other dialogs, but I don't think that is documented.
  24. --
  25.  
  26.  -- Jim Walker  USC Dept. of Math.  walkerj@math.scarolina.edu
  27.