Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re^2: Refreshing text without flicker with AddLabel using Win32::GUI

by ikegami (Patriarch)
on Dec 02, 2006 at 09:43 UTC ( #587375=note: print w/replies, xml ) Need Help??


in reply to Re: Refreshing text without flicker with AddLabel using Win32::GUI
in thread Refreshing text without flicker with AddLabel using Win32::GUI

Second, there is a noflicker option to Win32::GUI::Window->new, which for some reason defaults to 0.

I was curious, so I investigated.

When this option is off, window updates are performed as follows:

  • The part of the window that needs to be redrawn (or more) is redrawn.

When this option is on, window updates are performed as follows:

  • A canvas (Device Context) is created.
  • A bitmap is allocated for the canvas.
  • The bitmap is initialized to the background colour.
  • The whole window (and child windows) is painted onto this canvas.
  • The bitmap is copied over the window's bitmap.
  • The bitmap is deallocated.
  • The canvas is deallocated.

Think of it as buffering the output so that all the changes to the window's pixels occurs as close to instantly as possible.

The latter takes longer to update the window, uses more resources and is probably rarely needed.

  • Comment on Re^2: Refreshing text without flicker with AddLabel using Win32::GUI

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://587375]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (6)
As of 2022-01-20 17:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    In 2022, my preferred method to securely store passwords is:












    Results (57 votes). Check out past polls.

    Notices?