FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Painting of disabled checkboxes not ok
Posts: 1048
Joined: Mon Oct 24, 2005 09:54 AM
Painting of disabled checkboxes not ok
Posted: Mon Feb 09, 2009 01:04 PM
The first picture shows normal dialog!


This picture shows, when the status from the checkbox changes from enable to disable. In this case the background from left,top from checkbox to the right,bottom corner of dialog is erased. The text above are disabled by me (not error)!!

As tip: This "bug" are not visible, when the following code in METHOD Colors() from TCONTROL are temporarely deleted! Any massage also to send?

SendMessage( ::oWnd:hWnd, WM_ERASEBKGND, hDC, 0 ) // to properly remove/set the dotted rect
Regards,
Günther
---------------------------------
office@byte-one.com
Posts: 1048
Joined: Mon Oct 24, 2005 09:54 AM
Re: Painting of disabled checkboxes not ok
Posted: Thu Feb 12, 2009 04:20 PM

Antonio, any suggestion?

Regards,
Günther
---------------------------------
office@byte-one.com
Posts: 1048
Joined: Mon Oct 24, 2005 09:54 AM
Re: Painting of disabled checkboxes not ok
Posted: Mon May 10, 2010 08:06 AM

Antonio, any solution for this problem? I found, this problem are only shown, if the dialog is transparent!

Regards,
Günther
---------------------------------
office@byte-one.com
Posts: 694
Joined: Fri Oct 07, 2005 06:58 AM
Re: Painting of disabled checkboxes not ok
Posted: Mon May 10, 2010 10:18 AM
Antonio,

Yo tengo el mismo problema con los radiobutton

Code (fw): Select all Collapse
Redefine Radio oRadio VAR nOpc ID 805,806 OF oDlg
Un saludo

Fernando González Diez

ALSIS Sistemas Informáticos
Posts: 654
Joined: Fri Oct 21, 2005 05:54 AM
Re: Painting of disabled checkboxes not ok
Posted: Mon May 10, 2010 11:50 AM
Try with this:

Set lTransparent Property of your Group Boxes with .T. as under:

Code (fw): Select all Collapse
oGroupBox:lTransparent := .T.


It it does not work, please post the code here to give you a solution.

- Ramesh Babu
Posts: 1048
Joined: Mon Oct 24, 2005 09:54 AM
Re: Painting of disabled checkboxes not ok
Posted: Tue May 18, 2010 10:46 AM
In Tcontrol method Colors() i change
Code (fw): Select all Collapse
SendMessage( ::oWnd:hWnd, WM_ERASEBKGND, hDC, 0 ) // to properly remove/set the dotted rect

with
Code (fw): Select all Collapse
DrawPBack(::hWnd,hDC)

and it seems, that all is functioning! This behavoir is only with lTransparent and themed!
Regards,
Günther
---------------------------------
office@byte-one.com
Posts: 694
Joined: Fri Oct 07, 2005 06:58 AM
Re: Painting of disabled checkboxes not ok
Posted: Wed May 19, 2010 02:51 PM
byte-one wrote:In Tcontrol method Colors() i change
Code (fw): Select all Collapse
SendMessage( ::oWnd:hWnd, WM_ERASEBKGND, hDC, 0 ) // to properly remove/set the dotted rect

with
Code (fw): Select all Collapse
DrawPBack(::hWnd,hDC)

and it seems, that all is functioning! This behavoir is only with lTransparent and themed!


Funciona perfercto, muchas gracias por la aportación.
Un saludo

Fernando González Diez

ALSIS Sistemas Informáticos
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: Painting of disabled checkboxes not ok
Posted: Sat Aug 28, 2010 04:30 PM
The current code is:
Code (fw): Select all Collapse
            if Upper( ::ClassName() ) $ "TCHECKBOX;TRADIO;TGROUP"
               // DrawPBack( ::hWnd,  hDC )
               ParentImage( ::hWnd, hDC )
               if Upper( ::ClassName() ) != "TGROUP"
                  SendMessage( ::oWnd:hWnd, WM_ERASEBKGND, hDC, 0 ) // to properly remove/set the dotted rect
               endif   
            endif

Are you changing it into: ?
Code (fw): Select all Collapse
            if Upper( ::ClassName() ) $ "TCHECKBOX;TRADIO;TGROUP"
               DrawPBack( ::hWnd,  hDC )
            endif
regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 663
Joined: Mon Dec 05, 2005 11:22 PM
Re: Painting of disabled checkboxes not ok
Posted: Sat Aug 28, 2010 05:04 PM

I downloaded and installed again. It did not solve my problem. Reading the thread and looking at control.prg It seems you guys are talking about being related to transparency.

I am just using testchk3.prg in the samples folder. No themes, no .rc, and no transparency.

Continue the discussion