home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / sys / mac / programm / 15328 < prev    next >
Encoding:
Internet Message Format  |  1992-09-10  |  1.0 KB

  1. Path: sparky!uunet!elroy.jpl.nasa.gov!swrinde!zaphod.mps.ohio-state.edu!pacific.mps.ohio-state.edu!linac!att!bu.edu!dartvax!Joe.Francis
  2. From: Joe.Francis@dartmouth.edu (Joe Francis)
  3. Newsgroups: comp.sys.mac.programmer
  4. Subject: Re: GetColor bug (was RE: NON-QUICKDRAW GAMES)
  5. Message-ID: <1992Sep11.005924.21955@dartvax.dartmouth.edu>
  6. Date: 11 Sep 92 00:59:24 GMT
  7. References: <14973@mindlink.bc.ca>  <28629@vedge.UUCP>
  8. Sender: news@dartvax.dartmouth.edu (The News Manager)
  9. Organization: Dartmouth College, Hanover, NH
  10. Lines: 11
  11. X-Posted-From: InterNews1.0a4@newshost.dartmouth.edu
  12.  
  13. In article <28629@vedge.UUCP>
  14. brad@vedge.UUCP (Brad Fowlow) writes:
  15.  
  16. > Any thoughts on a PM-friendly way to get back the "normal"
  17. > system palette when my last paletted window dies,
  18. > just as happens when the app quits?
  19.  
  20. I'm hopeful that someone else will post a more elegant way, but one way
  21. to do what you want is to detect when you are closing your only window,
  22. EraseRect it's portRect, and set it's Palette to the system palette,
  23. *then* close the window.  
  24.