Page 1 of 1

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

Posted: Fri Feb 10, 2006 7:42 am
by dpaterso
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.

Posted: Fri Feb 10, 2006 9:05 am
by Antonio Linares
Dale,

What hardware are you using ?

Posted: Fri Feb 10, 2006 9:15 am
by dpaterso
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.

Posted: Fri Feb 10, 2006 10:55 am
by Antonio Linares
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.