nxSoftware

Information.


Remember that this utility is not guaranteed to reduce flicker in any particular project!
 

Automatically reduce flicker when dynamically resizing controls...

SmartErase is a small (Windows only) source-code utility (coded in Purebasic) designed to assist in reducing flicker when employing dynamic resizing of common controls in response to the user resizing the main application window etc.

The vast majority of such flicker is caused by controls erasing their contents prior to repainting etc. and thus interfering with any overlapping controls (such as child controls). Interactions between the Windows common controls and the Purebasic gadget library often leave our GUI's prone to flicker when resizing.

There are various methods we usually employ when tackling such flicker, each with a degree of success which usually depends upon the underlying circumstances etc. These methods range from simple Windows styles (such as #WS_CLIPCHILDREN) to full blown custom erasing etc. Unfortunately, double-buffering of the Windows common controls is not easily achieved and invariably involves some rather nasty hacks!

Applying SmartErase to any window/control whose child controls flicker inordinately when being resized can greatly assist in reducing this flicker and indeed, in some cases, remove it completely!
 

The download includes all of the SmartErase source-code, multiple demo programs and a very short user manual which explains how to get the best out of this utility.

Enjoy!