Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!cwjcc!gatech!prism!vsserv!loligo!pepke From: pepke@loligo (Eric Pepke) Newsgroups: comp.sys.mac.programmer Subject: Re: Problems... Keywords: InitWindows(), Modified SFPGetFile Dialog Message-ID: <169@vsserv.scri.fsu.edu> Date: 5 Sep 89 14:01:13 GMT References: <13707@megaron.arizona.edu> Sender: news@vsserv.scri.fsu.edu Reply-To: pepke@loligo.UUCP (Eric Pepke) Organization: Supercomputer Computations Research Institute Lines: 31 In article <13707@megaron.arizona.edu> gerhard@arizona.edu (Gerhard Mehldau) writes: >Can someone out there help me with the following two problems? > >(1) I'm currently working on an image processing application which starts out > by resetting the color table (no flames, please!). Having done that, it > needs to redraw the desktop in its original color/pattern. InitWindows() > works fine under Finder, but doesn't do anything under MultiFinder. > Any ideas? Clearly, if you change the entire color table, the desktop cannot be drawn in its original color and pattern. The most you can hope for is a best guess of what the colors would be in the new table. If the latter is what you need, you can come close by using the Palette Manager. Don't mess with the color table directly, but associate with your window a palette of tolerant colors with the tolerance of each set to zero. Every time the palette is changed, various managers and applications themselves will try to redraw the world to look as good as possible in the new world. Sometimes they even come close. However, you may find the flashing caused by the redrawing annoying. NCSA Image uses a different approach which avoids the flashing but which leaves strange icon colors when run under MultiFinder. Eric Pepke INTERNET: pepke@gw.scri.fsu.edu Supercomputer Computations Research Institute MFENET: pepke@fsu Florida State University SPAN: scri::pepke Tallahassee, FL 32306-4052 BITNET: pepke@fsu Disclaimer: My employers seldom even LISTEN to my opinions. Meta-disclaimer: Any society that needs disclaimers has too many lawyers.