TWBrowse flickering on dialog

Post Reply
User avatar
Enrico Maria Giordano
Posts: 7355
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia
Contact:

TWBrowse flickering on dialog

Post 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
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Post 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.
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Enrico Maria Giordano
Posts: 7355
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia
Contact:

Post 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
Post Reply