Re: tiny little question about win32lib

new topic     » goto parent     » topic index » view thread      » older message » newer message
Spock said...

Persistent graphics are a common issue in GUI apps. A quick solution is to simply redraw the graphics during each onPaint event or, if it's just text, embed them in a label control [Disclaimer: I don't know if Win32lib actually has a label control..].

Spock

This is interesting...

Yes, your fix works well. redrawing is certainly an answer; however, I do not understand what Windows is doing. Anytime something is moved the entire screen needs to be repainted. w32hpaint is never fired unless a portion of the app window (win) goes off screen and then only if moved back on the screen. As the window moves back onto the screen multiple w32Paint events are triggered, Each time a narrow band of the window is redrawn (added to the complete image). I assume that Windows silently repainting the entire screen as the screen buffer is updated. w32Paint is reconstructing the screen buffer a narrow band at the time as the app window moves back onto the screen - Windows then updates the entire screen every time the buffer changes..

as Arte Johnson would say... VERRRRY interresting!

thanks for your help.

jd

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

Search



Quick Links

User menu

Not signed in.

Misc Menu