Page 1 of 1

TWBrowse flickering on dialog

Posted: Tue Nov 21, 2006 11:12 am
by Enrico Maria Giordano
This is the sample (try to resize the dialog):

Code: Select all

#include "Fivewin.ch"


FUNCTION MAIN()

    LOCAL oDlg, oBrw

    USE TEST

    DEFINE DIALOG oDlg

    oDlg:nStyle = NOR( oDlg:nStyle, WS_THICKFRAME )

    @ 0, 0 LISTBOX oBrw FIELDS

    ACTIVATE DIALOG oDlg;
             ON INIT oDlg:SetControl( oBrw );
             CENTER

    CLOSE

    RETURN NIL
How can I get rid of the flickering?

EMG

Posted: Tue Nov 21, 2006 11:41 am
by Antonio Linares
Enrico,

dialogboxes don't use buffer painting (Methods DispBegin() and DispEnd()) because it may slowdown the overall performance as there are many controls that get also repainted, thats why you see the flickering.

Posted: Tue Nov 21, 2006 12:16 pm
by Enrico Maria Giordano
Ok, thank you.

EMG

Posted: Tue Nov 21, 2006 3:17 pm
by Enrico Maria Giordano
Antonio Linares wrote:Enrico,

dialogboxes don't use buffer painting (Methods DispBegin() and DispEnd()) because it may slowdown the overall performance as there are many controls that get also repainted, thats why you see the flickering.
Can I activate double buffer painting on a specific dialog? How?

EMG