Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!wuarchive!usc!jarthur!elroy.jpl.nasa.gov!zardoz.cpd.com!dhw68k!thecloud From: thecloud@dhw68k.cts.com (Ken McLeod) Newsgroups: comp.sys.mac.programmer Subject: Re: Missing update events in SFGetFile (system 7.0) Message-ID: <1990Aug24.172212.3483@dhw68k.cts.com> Date: 24 Aug 90 17:22:12 GMT References: <1990Aug15.121158.813@lth.se> <1990Aug19.110544.12102@dhw68k.cts.com> <1990Aug20.143954.2276@eng.umd.edu> Reply-To: thecloud@dhw68k.cts.com (Ken McLeod) Organization: Wolfskill & Dowling residence; Anaheim, CA (USA) Lines: 36 In article <1990Aug20.143954.2276@eng.umd.edu> russotto@eng.umd.edu (Matthew T. Russotto) writes: >In article <1990Aug19.110544.12102@dhw68k.cts.com> thecloud@dhw68k.cts.com (Ken McLeod) writes: >>the default palette and draws a color picture. Here's the problem: >>under 7.0a9, the call to SetPalette/ActivatePalette *erases* my alert >>window to white...anything previously drawn in the window is gone. >> [code omitted...] >> Is this a known System 7 bug (I hope)? > >Actually, it sounds like correct behavior. It is perfectly reasonable for >the dialog to be erased when it is made invalid by the SetPalette call. I >see two easy workarounds-- move the FillRect to AFTER the if statement, or >change the SetPalette to >SetPalette((WindowPtr) -1L, ourPal, FALSE); >(If you tell SetPalette to update on change of color environment, don't >complain too much when it does :-) ) Well, I changed the cUpdates argument in my SetPalette call to FALSE. The behavior is still the same (window is erased to white and gets an update event when ActivatePalette() is called). I'm not too concerned yet (after all, 7.0a9 is a "voodoo" version :) ... just wanted to know if anyone else had noticed this. Incidentally, it also occurs when my app gets switched into the background: all windows in my layer are erased to white, the foreground app's windows are updated, then my windows get their update events and are redrawn. My app doesn't do anything color-related when it gets a suspend or resume event, so I suspect that something about ActivatePalette is "different" from previous System versions. -ken >Matthew T. Russotto russotto@eng.umd.edu russotto@wam.umd.edu >][, ][+, ///, ///+, //e, //c, IIGS, //c+ --- Any questions? -- ========== ....... ============================================= Ken McLeod :. .: UUCP: ...{spsd,zardoz,felix}!dhw68k!thecloud ========== :::.. ..::: INTERNET: thecloud@dhw68k.cts.com //// =============================================