[futurebasic] Re: [FB] White Dot on Refresh problem

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : June 1999 : Group Archive : Group : All Groups

From: Al Boyd <aboyd@...>
Date: Wed, 23 Jun 99 15:07:57 -0500
>It would be nice if there was a command or statement that one could use to
>defeat the update event caused by FB Runtime (i.e., gUpdate = _false).
>
>tedd

Although there's probably a better way to do it (my code is a _model_ of 
"there's a better way to do things"), I do this in my hurricane tracking 
program with two variables...

gWaitToUpdate
gNeedToUpdate

I had bad flicker in the program when a window was closed that was in 
front of the map window and changes had been made to the map. Things are 
done like so...

'-----------------------

CLEAR LOCAL FN copyGWorldToWindow
   LONG IF gWaitToUpdate <> _true

     'do the offscreen voodoo

   END IF
END FN

[window closed that effects offscreen gworld map]

gWaitToUpdate = _true
gNeedToUpdate = _true

[ do offscreen gworld stuff, when finished set ]

gWaitToUpdate = _false

[ in the apps MAIN ]

'====================
"Action:Other"
'--------------------
SELECT gSubAction

   CASE _otherNullEvent
       LONG IF gWaitToUpdate = _false AND gNeedToUpdate = _true
         FN copyGWorldToWindow
         gNeedToUpdate = _false
       END IF
END SELECT

HTH,
Al

=======================================================
McHurricane: Macintosh Storm Tracking Software

http://members.aol.com/stormeye
email: aboyd@...
=======================================================