Re: Jiri's Widgets
- Posted by David Cuny <dcuny at LANSET.COM> Mar 09, 2000
- 558 views
jiri babor wrote: > Too complex, David. I want to keep it as simple as practicable. Yeah, I just wanted to let you know that the "big boys" don't have any magic bullets. > (Just to show my total ignorance: people talk > about double and even triple buffering all the time. > David, can you briefly explain what those terms > really mean. In simple language, please.) It means that you draw to an off-screen bitmap, and then copy the results to the screen when you are done. This avoids the "flicker" that you see when a window or widget drawn. > Even your scheme sounds expensive. You're correct. That's why most windowing systems do it the way I described above. Set a flag on the window, and if part of the window was off-screen/blocked/etc, redraw it entirely. Otherwise, you know it's safe just copy the image. Of course, the "other" windowing systems keep track of the "damaged" portions, and only redraw what was destroyed. The code is a bit more ugly than redrawing everything. > I think, I will simply not allow windows to slide out of screen. That fits with you're "simple minded" approach. -- David Cuny