Ways to prevent flickering of screens ?

Posted by gdb390 on 19-Nov-2015 08:48

Openedge 11.6 64 bit 

Telerik Q3 2015 

What are the most common practices to prevent screens from flickering during the drawing of the screens at startup ?

Is LockWinUpdate (user32.dll) still usable in a 64 bit environment ?

Are there any alternatives that are better to use ?

All Replies

Posted by Matt Gilarde on 19-Nov-2015 09:31

I know that people, including people in Progress support, have recommended using LockWindowUpdate to temporarily stop painting but that's not really what it's for. LockWindowUpdate is meant to be used only when the user is doing some sort of dragging operation like resizing a window or drag and drop. Using it to prevent painting in your application can break functionality in the operating system or other applications.

Using the WM_SETREDRAW message is the proper way to prevent a window from being painted.

Posted by gdb390 on 24-Nov-2015 07:04

I will have a look into that !

Thanks !

This thread is closed