Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sun-barr!lll-winken!elroy.jpl.nasa.gov!swrinde!zaphod.mps.ohio-state.edu!pacific.mps.ohio-state.edu!linac!att!pacbell.com!ucsd!nosc!crash!erich From: erich@crash.cts.com (Eric Hicks) Newsgroups: comp.sys.mac.programmer Subject: Disabling menus when DA's are closed Keywords: desk accessory, menu, c, pascal Message-ID: <7769@crash.cts.com> Date: 28 Feb 91 21:54:29 GMT Organization: Crash TimeSharing, El Cajon, CA Lines: 22 Just a quick question that is quite probably rather simply solved. An application I'm writing never uses the edit menu while my main window is frontmost. (ie active) I've dimmed the menu, which is easily accomplished in ResEdit. My problem occurs with DA suppport. I can enable the menu when the DA comes up easily, and I also figured out how to tell when the user has chosen close from my file menu as a way to close a DA. My Problem occurs when the user, clicks the close box of a DA. How can I find out when this has happened so that I can dim the edit menu? I have a solution that "works" but it's so ugly that it's not worth posting. E-mail response is fine and I'll summarize to the net if there seems to be a need and the solution isn't obvious. Code fragments in either Pascal or C are fine, as they are relatively easy to inter-translate. If it's any help, I'm using THINK C 4.0. Thanks in advance... -- <><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><> < UUCP: {nosc ucsd hplabs!hp-sdd}!crash!erich > < ARPA: crash!erich@nosc.mil > < INET: erich@crash.cts.com > < DISCLAIMER: My opinions are a figment of your imagination. > < "At last, after 2000 years of work, the Eludium PU-36 > < explosive space modulator." > <><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>