FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour TWBrowse flickering on dialog
Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
TWBrowse flickering on dialog
Posted: Tue Nov 21, 2006 11:12 AM
This is the sample (try to resize the dialog):

#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
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
TWBrowse flickering on dialog
Posted: Tue Nov 21, 2006 11:41 AM

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.

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
TWBrowse flickering on dialog
Posted: Tue Nov 21, 2006 12:16 PM

Ok, thank you.

EMG

Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
TWBrowse flickering on dialog
Posted: Tue Nov 21, 2006 03:17 PM
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

Continue the discussion