DispBegin/DispEnd Methods in FWH\SOURCE\CLASSES\WINDOW.PRG

DispBegin/DispEnd Methods in FWH\SOURCE\CLASSES\WINDOW.PRG

Postby dpaterso » Fri Feb 10, 2006 7:42 am

With every new realease of FWH I have to change:

METHOD DispBegin( lCreateDC ) // double buffer painting
METHOD DispEnd( aRestore ) // double buffer painting

to:

METHOD DispBegin( lCreateDC ) VIRTUAL // double buffer painting
METHOD DispEnd( aRestore ) VIRTUAL // double buffer painting

and comment out the relative source.

If this is not done then when moving or dragging dialogs, windows, etc. there is a visible 'dragging' effect and the movement is sort of 'unresponsive'.

Is it not possible to implement the changes permanently from now on or do these changes affect other things?

Regards,

Dale.
dpaterso
 
Posts: 142
Joined: Tue Jan 24, 2006 9:45 am
Location: South Africa

Postby Antonio Linares » Fri Feb 10, 2006 9:05 am

Dale,

What hardware are you using ?
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42118
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Postby dpaterso » Fri Feb 10, 2006 9:15 am

Thanks for the prompt response.

Mostly AMD Athlon XP Processors with NVidia AGP Cards (but even on one of my video production workstations that has a AGP 8X 256MB NVidia 7600 GT card this 'slow' or 'sluggish' painting and movement is still apparent).

The workstation that I program on (using FWH and xHB) is a 1.8MHZ Intel P4 and has an integrated SIS AGP Graphics Chip.

Changing the Methods described above does solve the problem and does not seem to affect anything else so why are they there in the first place? I was under the impression that they were just there for compatibility purposes with older versions of FiveWin or something like that?

Regards,

Dale.
dpaterso
 
Posts: 142
Joined: Tue Jan 24, 2006 9:45 am
Location: South Africa

Postby Antonio Linares » Fri Feb 10, 2006 10:55 am

Dale,

The purpose of those methods is to avoid flickering when a window is resized, including the flickering of its contained controls. On slow machines it may be a penalty.

Anyhow your fix is ok, as you turn them into virtual and they do nothing.
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42118
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 60 guests