FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour SAYS overpainting
Posts: 1048
Joined: Mon Oct 24, 2005 09:54 AM
SAYS overpainting
Posted: Tue Jul 05, 2011 11:45 AM
The abnormal painting are only in VISTA and 7 visible! The next code in the original control.prg is not the solution for this ugly problem with says. On every click on checkbox or radio the says are overpainted and becomes bigger and bigger!

Code (fw): Select all Collapse
         if Upper( ::ClassName() ) $ "TCHECKBOX;TRADIO;TGROUP"
               // Without the above IF condition, says with border in themed apps
               // on transparent dialogs with solid color background
               // are not painted correctly. With each click of checkbox / radio
               // border and say text are overpainted one pixel down & one pixel right

               DrawPBack( ::hWnd, hDC )
               //ParentImage( ::hWnd, hDC )
            endif
Regards,
Günther
---------------------------------
office@byte-one.com
Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Re: SAYS overpainting
Posted: Tue Jul 05, 2011 01:10 PM

I see no problems in SAYs using latest FWH release. Can you provide a little sample of the problem?

EMG

Posts: 1048
Joined: Mon Oct 24, 2005 09:54 AM
Re: SAYS overpainting
Posted: Tue Jul 05, 2011 01:57 PM

Enrico, some tests and I found out, this painting-error are not direct produced from checkbox or radio!!! It shows always on call from oDlg:refresh(.F.)!

Regards,
Günther
---------------------------------
office@byte-one.com
Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Re: SAYS overpainting
Posted: Tue Jul 05, 2011 02:08 PM

We still need a sample of the problem.

EMG

Posts: 1048
Joined: Mon Oct 24, 2005 09:54 AM
Re: SAYS overpainting
Posted: Tue Jul 05, 2011 02:21 PM
Please look at this screen:
http://byte-one.com/1.jpg

In the meantime I commented out also in control.prg the ::refresh(.F.) from "case nMsg == WM_LBUTTONDOWN" in the method Handleevent(). And now is OK for me. Think: The error are only in VISTA and 7 !
But I dont no, if this correction shows sideeffects!
Regards,
Günther
---------------------------------
office@byte-one.com
Posts: 4840
Joined: Fri Nov 18, 2005 04:52 PM
Re: SAYS overpainting
Posted: Tue Jul 05, 2011 04:04 PM

Many of these things seem to be related to specific themes.

James

FWH 18.05/xHarbour 1.2.3/BCC7/Windows 10
Posts: 1048
Joined: Mon Oct 24, 2005 09:54 AM
Re: SAYS overpainting URGENT
Posted: Fri Jul 08, 2011 11:44 AM
Please let us correct also this point! I use this little correction without problems.

In the meantime I commented out also in control.prg the ::refresh(.F.) from "case nMsg == WM_LBUTTONDOWN" in the method Handleevent(). And now is OK for me. Think: The error are only in VISTA and 7 !
But I dont no, if this correction shows sideeffects!
Regards,
Günther
---------------------------------
office@byte-one.com
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: SAYS overpainting
Posted: Sat Jul 30, 2011 07:37 PM

Günther,

It seems as the problem comes from function FixSays(). If you add this code in your app:

function FixSays()

return nil

then the SAYs don't overpaint

We are looking for the right fix. Many thanks for your feedback :-)

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: SAYS overpainting
Posted: Mon Aug 01, 2011 07:18 AM

We are publishing FWH 11.07 where we have modified FixSays() but we may need further testing to be sure that there are no side effects for this change

regards, saludos

Antonio Linares
www.fivetechsoft.com

Continue the discussion