[comp.sys.mac.programmer] MacApp Update flash

jansm@cuisun.unige.ch (MICHAL Jan 6260) (05/15/91)

Hi Folks,

We're using MacApp 2.0b9 (actually with the C++ interfaces) and have
a problem with flashing during updates.  The problem is centered on
the fact that MacApp wipes the update Rgn clean with the following
code in DoDrawContents from TWindow.


  IF Focus THEN
        BEGIN
        { Ensure that the background is correct }
        GetVisibleRect(visRect);
        EraseRect(visRect);

        INHERITED DrawContents;
	...

MacApp, since it doesn't know what we are drawing in our pane, will 
always wipe all damaged areas in the all the panes clean. If we have 
a pane which doesn't need a white background (such as one containing 
a pixmap) we get a white flash during the update due to the
unnecessary erasing of the pane.

It would be nice to be able to on a pane by pane basis ask if we want
our panes to be wiped clean or not on updates.

I once changed TCL to do exactly this and it wasn't too hard.  
However it's not clear how easy it would be to change MacApp to 
implement this.  Has this been changed in a later version of MacApp 
(later than 2.0b9 - what is actually current now?) Or has someone 
out in netland hacked MacApp to provide this functionality?  
I'd love to hear about it.

Also does anyone know when the true C++ version of MacApp will be 
available?

Thanks

-Jan-

(ps. please reply to the address in the .sig)

------
Jan Snydr-Michal		    jansm@cih.unige.ch
Digital Imaging Group			-or-
University Hospital of Geneva	    jsnydr@hstbme.mit.edu
Switzerland			    +41 22 226260