> Thanks for the help, but that's not > correct. Double-Buffering relates to the Mac, > not Windows, and the function in RB is Window. >UpdateNow, but again it only applies to the Mac > - the function flushes the buffering.
I use 5.5.5 mainly. For me, UpdateNow doesn't apply in this case for either platform. But, regardless, if you are having issues on Windows, then UpdateNow apparently won't do anything for you, therefore, the function is, as you say, not UpdateNow, eh? You are working on a Windows application, so you will have Windows related problems, and so, maybe, you need to step out of your bounds and try a different approach. NOTE: Double-buffering can be applied to any computer platform that draws graphics. The only difference is that Macintosh uses built-in double-buffering. As for Windows, you create your own double-buffer in code. It is very easy to do and the code in the LR shows you at least part of the steps to do this in RB. The concept is to place a complete image in memory before displaying it. Then, display it on a surface instead of using resources to both draw and create the image. Believe me, this relates to Windows. IF you do not do this, any graphic you have that need updating will be very flickery. See "flicker" below. > The recommendation for looking for "flicker" or > NewPicture isn't helpful either, because that > talks about CREATING a graphic. I'm talking about > this, for example: The example shows you how to create an animation, but the it also presents the basic principals of double-buffering. All you need to do is remove the parts that are used for animation (the incrementing of X and Y using a loop, for example) and you have a simple double-buffering system. You did not state that you had controls on top of an image. All you said was: > There's bit of graphical elements in it, and I'm getting > lots of flicker with the interface... Since you are having problems with controls, I would suggest, if possible, using the Canvas Backdrop property to display the image. I believe the backdrop will do the double buffering for you, even on Windows. The flickering when resizing the window will automatically be reduced for you. However, if you are drawing other images on top of the background image, I still suggest a double-buffering system. Probably most important is that, since you are having problems with blank spaces, I suggest doing your updating in a Thread. In many situations, this does a very good job of removing flicker. To the best of my knowledge, there are times when blank spaces are unavoidable. My guess is that these applications are demanding too many resources and drawing things on the screen become less important than completing a task. The application and even the system can 'hang.' If you continue having these issue, feel free to create a simple example that has these specific problems and send it to me off list. I'd be happy to take a look at it and see if I can help in any way. Good luck. _______________________________________________ Unsubscribe or switch delivery mode: <http://www.realsoftware.com/support/listmanager/> Search the archives: <http://support.realsoftware.com/listarchives/lists.html>
