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