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

  1. Newsgroups: comp.sys.mac.programmer
  2. Path: sparky!uunet!charon.amdahl.com!netcomsv!netcom.com!leonardr
  3. From: leonardr@netcom.com (Leonard Rosenthol)
  4. Subject: Detecting modal dialog (Re: When is a menu disabled?) 
  5. Message-ID: <1993Jan27.201359.25344@netcom.com>
  6. Organization: Netcom Online Communications Services (408-241-9760 login: guest)
  7. References: <walkerj.728102613@milo.math.scarolina.edu> <toge-270193142420@130.87.65.24> <walkerj.728144645@milo.math.scarolina.edu>
  8. Date: Wed, 27 Jan 1993 20:13:59 GMT
  9. Lines: 26
  10.  
  11. In article <walkerj.728144645@milo.math.scarolina.edu> walkerj@math.scarolina.edu (Jim Walker) writes:
  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.     I don't think it is documented either, but this is how MultiFinder used
  26. to determine whether you could switch layers or not when a dialog was up - if
  27. spareFlag was set it wouldn't switch.  So by clearing spareFlag in a filterProc
  28. you could actually do a "movableModal" and still call ModalDialog (though why
  29. you would want to is another story?!?!).
  30.  
  31. -- 
  32. -----------------------------------------------------------------------------
  33. Leonard Rosenthol            Internet:     leonardr@netcom.com
  34. Director of Advanced Technology        AppleLink:    MACgician
  35. Aladdin Systems, Inc.            GEnie:        MACgician
  36.  
  37.