FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Repaint slowness in TBar
Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Repaint slowness in TBar
Posted: Tue Aug 07, 2012 05:43 PM
In the following sample, please try to move another app over the buttonbar. You should see that the buttonbar background become temporarily white as the covering window moves:

Code (fw): Select all Collapse
#include "Fivewin.ch"


FUNCTION MAIN()

    LOCAL oDlg

    DEFINE DIALOG oDlg;
           SIZE 1000, 600

    ACTIVATE DIALOG oDlg;
             ON INIT TOOLBAR( oDlg );
             CENTER

    RETURN NIL


STATIC FUNCTION TOOLBAR( oDlg )

    LOCAL i

    DEFINE BUTTONBAR OF oDlg 2007

    FOR i = 1 TO 35
        DEFINE BUTTON OF oDlg:oBar;
               FILE "C:\FWH\BITMAPS\OPEN.BMP"
    NEXT

    RETURN NIL


EMG
Posts: 181
Joined: Thu Apr 17, 2008 02:38 PM
Re: Repaint slowness in TBar
Posted: Wed Aug 08, 2012 03:25 PM

I tried your program with harbour and xHarbour, but I have not encountered the problem you reported.

C Compiler BCC 55
Harbour 3.0
xHarbour 1.2.1
FWH 11.10

regards

Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Re: Repaint slowness in TBar
Posted: Wed Aug 08, 2012 03:31 PM

Maybe the problem is with a newer FWH version?

EMG

Posts: 1789
Joined: Tue Oct 11, 2005 05:01 PM
Re: Repaint slowness in TBar
Posted: Wed Aug 08, 2012 03:34 PM

enrico, fwh12.04 xharbour, windows 8
no problems.

salu2

Salu2

Carlos Vargas

Desde Managua, Nicaragua (CA)
Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Re: Repaint slowness in TBar
Posted: Wed Aug 08, 2012 03:38 PM

Can you try under XP? Remember: you have to quickly move another window (you can start a second instance of the sample) over the buttonbar. Try to move it from right to left, starting with the buttonbar completerly covered.

EMG

Posts: 1335
Joined: Fri Jun 13, 2008 11:04 AM
Re: Repaint slowness in TBar
Posted: Thu Aug 09, 2012 04:17 AM

It is working fine with Harbour,xHarbour,FWH 12.06 BCC582 under Windows 7.

Regards

Anser

Posts: 1303
Joined: Tue Jul 21, 2009 08:12 AM
Re: Repaint slowness in TBar
Posted: Thu Aug 09, 2012 10:23 AM

Enrico,

With Harbour in Windows 7 and in XP shows fine.

With xHarbour.org in XP sometimes I experience a delay and flashing when painting the bar.

What´s the function used in FW to paint the buttons?.

Tnasbmp?.

Muchas gracias. Many thanks.



Un saludo, Best regards,



Harbour 3.2.0dev, Borland C++ 5.82 y FWH 13.06 [producción]



Implementando MSVC 2010, FWH64 y ADO.



Abandonando uso xHarbour y SQLRDD.
Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Re: Repaint slowness in TBar
Posted: Thu Aug 09, 2012 10:53 AM

It seems that only I have this problem. Any ideas on what is could be the reason?

EMG

Posts: 6983
Joined: Fri Oct 07, 2005 07:07 PM
Re: Repaint slowness in TBar
Posted: Thu Aug 09, 2012 12:56 PM

Enrico,
do you use WINDOWS standard view or AERO on your PC.
Best regards,
Otto

Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Re: Repaint slowness in TBar
Posted: Thu Aug 09, 2012 01:04 PM

I use XP. I tried to run my sample on a Notebook with Vista (Aero) without problem. What could it be in my PC (XP) that slows the buttonbar repaint?...

EMG

Posts: 2706
Joined: Fri Oct 07, 2005 01:50 PM
Re: Repaint slowness in TBar
Posted: Thu Aug 09, 2012 01:11 PM

Enrico

I know this may sound a bit in 'left field' .. see if there is an updated video driver for your pc .. it may or may not make any difference.

Rick Lipkin

Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Re: Repaint slowness in TBar
Posted: Thu Aug 09, 2012 01:25 PM

Thank you. Unfortunately, my video driver is updated. :-(

EMG

Posts: 222
Joined: Mon Jun 04, 2012 12:00 PM
Re: Repaint slowness in TBar
Posted: Thu Aug 09, 2012 03:22 PM

With xp professional Ihad often these errors in past.

Can you try to use F8 or Provvisor Section xp at init and see if it make error with only Vga system

Or you can erase your driver and make upgrade of your graphic driver

Often there are many app use graphic driver ( DLL) in memory of Pc and leak resources.

Continue the discussion