[comp.sys.atari.st] wind_update

hafer@tubsibr.uucp (Udo Hafermann) (12/19/89)

steve@thelake.UUCP (Steve Yelvington) writes:

>MWC documents wind_update() as "an AES routine that locks or unlocks a
>window." In "Atari ST Application Programming" (Pollack and Weber, Bantam
>Books), wind_update() is documented as "communicate with the AES about the
>application's current processing," which is more general and more
>accurate. 

What exactly happens when an application makes multiple calls to
wind_update()?  Are these calls stacked (as with hide_mouse())?  Is
there a way to find out how many calls have been made, or to force an
undo of all stacked calls?

mui@atari.UUCP (Derek Mui) (12/21/89)

> What exactly happens when an application makes multiple calls to
> wind_update()?  Are these calls stacked (as with hide_mouse())?  Is
> there a way to find out how many calls have been made, or to force an
> undo of all stacked calls?

	
	Wind_update() must be called in ON and OFF sequence. It doesn't 
matter how many times you call it as long as they are called in that 
sequence. Sorry, there isn't any way to find out how many times you have 
made that call.

	Wind_update() should be called when you are going to do a lot 
of screen update and you don't want to be interrupted in the middle of 
the operation. The best place to call wind_update( 1 ) is right after 
the event_multi(). Make sure to call wind_update( 0 ) before you entering
back to the event loop. 



==================================================================
Derek Mui, Atari Corp, 1196 Borregas Ave, Sunnyvale, CA 94086

UUCP: {..ames!atari!mui}
 FAX: 408-745-5179

Disclaimer: Opinions expressed here are my own and they may be 
	    hazardous to your mind.
==================================================================