home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.mac.programmer
- 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
- From: kjh+@cs.cmu.edu (Kenneth Hughes)
- Subject: Re: When is a menu disabled? (enableFlags isn't all)
- Message-ID: <C1Ivqs.83n.1@cs.cmu.edu>
- Keywords: windowKind, dialogKind, modal, FrontWindow
- Sender: news@cs.cmu.edu (Usenet News System)
- Nntp-Posting-Host: tr4.gp.cs.cmu.edu
- Organization: School of Computer Science, Carnegie Mellon
- References: <walkerj.728102613@milo.math.scarolina.edu> <toge-270193142420@130.87.65.24>
- Date: Wed, 27 Jan 1993 17:11:10 GMT
- Lines: 24
-
-
- Nobu Toge (Nat'l Lab for High Energy Physics) (toge@kekvax.kek.ac.jp) wrote:
- > walkerj@math.scarolina.edu (Jim Walker) wrote:
- >
- > >
- > > 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.
-
- I do not think this speaks to whether the front window is being modally
- displayed, only whether it's a dialog/alert (dialogKind), system window/DA
- ( < 0), or app window (userKind).
-
- Any other ideas, or did I miss Nobu Toge's point?
- I'm interested in how to determine this too.
-
-
- --
- Kenneth J. Hughes (kjh@cs.cmu.edu)
- Entelechy Corporation
-