Important fix

Important fix

Postby Antonio Linares » Sat Sep 15, 2007 8:05 am

In Class TWindow Method EndPaint(), add this final zero:

METHOD EndPaint() INLINE ::nPaintCount--,;
EndPaint( ::hWnd, ::cPS ), ::cPS := nil, ::hDC := nil, 0

It solves painting errors!
regards, saludos

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

Re: Important fix

Postby Enrico Maria Giordano » Sat Sep 15, 2007 9:54 am

Is the current release updated with that fix?

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

Postby Antonio Linares » Sat Sep 15, 2007 9:55 am

Enrico,

No, it isn't.
regards, saludos

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

Postby Antonio Linares » Sat Sep 15, 2007 10:08 am

Enrico,

We have uploaded FWH 7.09 again, so now the fix is included into it :-)
regards, saludos

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

Postby MOISES » Sat Sep 15, 2007 10:32 am

Antonio,

Does it include other pending fixes?.

Best regards,
MOISES
 
Posts: 838
Joined: Wed Aug 22, 2007 10:09 am

Postby Antonio Linares » Sat Sep 15, 2007 10:39 am

Moises,

No, not yet :-)
regards, saludos

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

Postby Enrico Maria Giordano » Sat Sep 15, 2007 3:51 pm

Antonio Linares wrote:Enrico,

We have uploaded FWH 7.09 again, so now the fix is included into it :-)


Thank you, Master! :-)

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

Re: Important fix

Postby Ugo » Sun Sep 16, 2007 4:03 pm

Antonio Linares wrote:In Class TWindow Method EndPaint(), add this final zero:

METHOD EndPaint() INLINE ::nPaintCount--,;
EndPaint( ::hWnd, ::cPS ), ::cPS := nil, ::hDC := nil, 0

It solves painting errors!
Antonio,
My version "FWHX 7.04" ix fixable?
can you post the little sample for test the fix?
Ciao, best regards,
Ugo
User avatar
Ugo
 
Posts: 283
Joined: Sat Oct 15, 2005 6:40 am
Location: Turin, Italy

Postby Antonio Linares » Sun Sep 16, 2007 7:26 pm

Ugo,

Yes, it should be applied to all FWH builds.

To test it, use a brush on the main window and move the calculator over it. You will see that the painting is not ok. With the fix, it paints ok.
regards, saludos

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

Postby Ugo » Sun Sep 16, 2007 9:18 pm

Antonio Linares wrote:Ugo,

Yes, it should be applied to all FWH builds.

To test it, use a brush on the main window and move the calculator over it. You will see that the painting is not ok. With the fix, it paints ok.

Antonio,
many thanks.
Ciao, best regards,
Ugo
User avatar
Ugo
 
Posts: 283
Joined: Sat Oct 15, 2005 6:40 am
Location: Turin, Italy

Postby Enrico Maria Giordano » Sun Sep 16, 2007 9:34 pm

Antonio Linares wrote:Ugo,

Yes, it should be applied to all FWH builds.

To test it, use a brush on the main window and move the calculator over it. You will see that the painting is not ok. With the fix, it paints ok.


Yes! Wonderful improvement! It works with bitmap backgrounds too.

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

Postby Ugo » Sun Sep 16, 2007 9:52 pm

EnricoMaria wrote:Yes! Wonderful improvement! It works with bitmap backgrounds too.
Antonio and Enrico,
i do not found any difference with Vista Business, is possible?
Ciao, best regards,
Ugo
User avatar
Ugo
 
Posts: 283
Joined: Sat Oct 15, 2005 6:40 am
Location: Turin, Italy

Postby Antonio Linares » Sun Sep 16, 2007 11:35 pm

Ugo,

You will not notice it in Vista as Vista has optimized WM_PAINT msgs. But it fails in XP.
regards, saludos

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

Postby tsai8839 » Mon Sep 17, 2007 3:51 am

Hi,

Does anyone can teach me what else and how to do after added the final zero?
Regards,

Andy Tsai
tsai8839
 
Posts: 22
Joined: Mon Jul 24, 2006 6:45 am

Postby Antonio Linares » Mon Sep 17, 2007 6:35 am

Just compile window.prg and add window.obj to your application, or replace it in FiveH.lib (or FiveHX.lib)
regards, saludos

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

Next

Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 60 guests