TWBrowse flickering on dialog

TWBrowse flickering on dialog

Postby Enrico Maria Giordano » Tue Nov 21, 2006 11:12 am

This is the sample (try to resize the dialog):

Code: Select all  Expand view
#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
Enrico Maria Giordano
 
Posts: 8710
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

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

Postby Enrico Maria Giordano » Tue Nov 21, 2006 12:16 pm

Ok, thank you.

EMG
User avatar
Enrico Maria Giordano
 
Posts: 8710
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Postby Enrico Maria Giordano » Tue Nov 21, 2006 3: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
User avatar
Enrico Maria Giordano
 
Posts: 8710
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 50 guests