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

Post Reply
dpaterso
Posts: 142
Joined: Tue Jan 24, 2006 9:45 am
Location: South Africa
Contact:

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

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

Post by Antonio Linares »

Dale,

What hardware are you using ?
regards, saludos

Antonio Linares
www.fivetechsoft.com
dpaterso
Posts: 142
Joined: Tue Jan 24, 2006 9:45 am
Location: South Africa
Contact:

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

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

Antonio Linares
www.fivetechsoft.com
Post Reply