home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.mac.programmer
- Path: sparky!uunet!pageworks.com!world!eff!sol.ctr.columbia.edu!zaphod.mps.ohio-state.edu!swrinde!cs.utexas.edu!sun-barr!sh.wide!wnoc-tyo-news!news.u-tokyo.ac.jp!s.u-tokyo!kekux!NewsWatcher!user
- From: toge@kekvax.kek.ac.jp (Nobu Toge)
- Subject: Re: When is a menu disabled? (enableFlags isn't all)
- Message-ID: <toge-270193142420@130.87.65.24>
- Followup-To: comp.sys.mac.programmer
- Sender: news@kekux.kek.ac.jp (USENET News System)
- Nntp-Posting-Host: 130.87.65.24
- Organization: KEK
- References: <walkerj.728102613@milo.math.scarolina.edu>
- Date: Wed, 27 Jan 1993 05:32:22 GMT
- Lines: 19
-
- In article <walkerj.728102613@milo.math.scarolina.edu>,
- 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.
-
- Re: enableFlags: I don't know except possibly to patch EnableItem and
- DisableItem and keep track of menu dis/enable actions. Pretty ug.
-
- - Nobu Toge (Nat'l Lab for High Energy Physics)
- - toge@kekvax.kek.ac.jp
-
- #include <StandardDisclaimers.h>
-