Re: Jiri's Widgets

new topic     » goto parent     » topic index » view thread      » older message » newer message

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. blink

-- David Cuny

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu