Old flicker remedies now obsolete?

  1. 3 months ago

    In the past we have been advised to make certain settings to avoid flicker
    For instance, Canvas doublebuffer, erasebackground, etc, something like

    #if TargetWin32
    Me.DoubleBuffer = True
    Me.EraseBackground = False
    Me.Transparent = False
    #else
    Me.DoubleBuffer = False
    Me.EraseBackground = True
    Me.Transparent = True
    #endif

    I am wondering if with this new version, whether those settings should be changed.
    I am getting great results with the new version, most of my screens are drawn on Canvases and the improvement is like night and day.
    But having a few odd cases where screens aren't refreshing as expected so now wondering if I should be turning off these old settings.

  2. Julian S

    May 15 Pre-Release Testers, Xojo Pro UK

    The rule of thumb is set everything to False. If you have scrolling regions that look like they are tearing or not refreshing correctly then try a Control.Refresh(false). For example when using a scrollbar to move a a container, place a Refresh(false) after you adjust the Top or Scroll (for canvas). You should only need to use Transparent or DoubleBuffer in special cases.

or Sign Up to reply!