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

  1. Path: sparky!uunet!gatech!concert!borg!strauss!lari
  2. From: lari@strauss.cs.unc.edu (Humayun Lari)
  3. Newsgroups: comp.sys.mac.programmer
  4. Subject: Re: GetColor bug (was RE: NON-QUICKDRAW GAMES)
  5. Message-ID: <15254@borg.cs.unc.edu>
  6. Date: 12 Sep 92 20:31:09 GMT
  7. References: <14973@mindlink.bc.ca> <28629@vedge.UUCP> <1992Sep11.005924.21955@dartvax.dartmouth.edu>
  8. Sender: news@cs.unc.edu
  9. Organization: The University of North Carolina at Chapel Hill
  10. Lines: 21
  11.  
  12. In article <1992Sep11.005924.21955@dartvax.dartmouth.edu> Joe.Francis@dartmouth.edu (Joe Francis) writes:
  13. >In article <28629@vedge.UUCP>
  14. >brad@vedge.UUCP (Brad Fowlow) writes:
  15. >> Any thoughts on a PM-friendly way to get back the "normal"
  16. >> system palette when my last paletted window dies,
  17. >> just as happens when the app quits?
  18. >I'm hopeful that someone else will post a more elegant way, but one way
  19. >to do what you want is to detect when you are closing your only window,
  20. >EraseRect it's portRect, and set it's Palette to the system palette,
  21. >*then* close the window.  
  22.  
  23. How about this: close the window and then create a new window offscreen (i.e.
  24. with coordinates like 32000, 32000, 32010, 32010) Set its palette to the system
  25. palette, and the Palette Manager should do its job... or is it smart enough to
  26. check whether the window is onscreen? I'd test this, but I'm at school.
  27.  
  28. BTW, shouldn't the palette be a pure black-and-white palette, so as to be nice
  29. to the applications in the background? Or will this not work?
  30.  
  31. Humayun Lari
  32. (lari@cs.unc.edu)
  33.