Checkboxes not transparent

Post Reply
User avatar
TimStone
Posts: 2967
Joined: Fri Oct 07, 2005 1:45 pm
Location: Trabuco Canyon, CA USA
Has thanked: 25 times
Been thanked: 5 times
Contact:

Checkboxes not transparent

Post by TimStone »

In ALL previous versions of FWH, the checkbox controls had the text transparent so whatever brush we used showed behind it.

On the current version, the text is now on a grey rectangle.

How can we get this fixed ASAP because it really does not look good and I want to release an update to my clients.

Tim
Tim Stone
http://www.MasterLinkSoftware.com
http://www.autoshopwriter.com
timstone@masterlinksoftware.com
Using: FWH 23.10 with Harbour 3.2.0 / Microsoft Visual Studio Community 2022-24 32/64 bit
User avatar
cnavarro
Posts: 6604
Joined: Wed Feb 15, 2012 8:25 pm
Location: España
Has thanked: 6 times
Been thanked: 8 times

Re: Checkboxes not transparent

Post by cnavarro »

Cristobal Navarro
Hay dos tipos de personas: las que te hacen perder el tiempo y las que te hacen perder la noción del tiempo
El secreto de la felicidad no está en hacer lo que te gusta, sino en que te guste lo que haces
User avatar
TimStone
Posts: 2967
Joined: Fri Oct 07, 2005 1:45 pm
Location: Trabuco Canyon, CA USA
Has thanked: 25 times
Been thanked: 5 times
Contact:

Re: Checkboxes not transparent

Post by TimStone »

Can we get a new build of the libraries with that fix.

I can make the change but I hate to need to add modified FWH files to my build scripts then have to change again with future releases. It leads to coding problems.
Tim Stone
http://www.MasterLinkSoftware.com
http://www.autoshopwriter.com
timstone@masterlinksoftware.com
Using: FWH 23.10 with Harbour 3.2.0 / Microsoft Visual Studio Community 2022-24 32/64 bit
User avatar
TimStone
Posts: 2967
Joined: Fri Oct 07, 2005 1:45 pm
Location: Trabuco Canyon, CA USA
Has thanked: 25 times
Been thanked: 5 times
Contact:

Re: Checkboxes not transparent

Post by TimStone »

Can we get a new build of the libraries with that fix.

I can make the change but I hate to need to add modified FWH files to my build scripts then have to change again with future releases. It leads to coding problems.
Tim Stone
http://www.MasterLinkSoftware.com
http://www.autoshopwriter.com
timstone@masterlinksoftware.com
Using: FWH 23.10 with Harbour 3.2.0 / Microsoft Visual Studio Community 2022-24 32/64 bit
User avatar
Antonio Linares
Site Admin
Posts: 42716
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Has thanked: 93 times
Been thanked: 103 times
Contact:

Re: Checkboxes not transparent

Post by Antonio Linares »

Dear Tim,

Please download FWH again. The fix is already inluded

waiting for your feedback

best regards
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
TimStone
Posts: 2967
Joined: Fri Oct 07, 2005 1:45 pm
Location: Trabuco Canyon, CA USA
Has thanked: 25 times
Been thanked: 5 times
Contact:

Re: Checkboxes not transparent

Post by TimStone »

I tried the suggestion. I DID read the linked thread and saw the suggested fix.

My problem is that the checkbox control on a DIALOG is no longer transparent. I rebuilt the application with the previous version of FWH from 2024, and it was correct. However, in the 2025 release, it lost it's transparency.

Yes, I did download the latest version of FWH this morning, and the problem is still there.

I checked, the dialog.prg ( and it is in the Initiate method, because there is no Initialize method ), and yes it is corrected on this version, at least in the source.

However, there must be another modification needed to resolve the problem. IT IS UNIVERSAL and occurs in ALL places in my program where the
checkbox control is used on a DIALOG.

In my .prg files, I use:

Code: Select all | Expand

	REDEFINE CHECKBOX oLabor:glstxf ID 1040 OF oDgl MESSAGE "Is this service normally taxable for your clients ?" UPDATE
And this is the RC code:

Code: Select all | Expand

    CONTROL         "Fixed prices ?",1049,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,470,110,80,13   
Tim
Tim Stone
http://www.MasterLinkSoftware.com
http://www.autoshopwriter.com
timstone@masterlinksoftware.com
Using: FWH 23.10 with Harbour 3.2.0 / Microsoft Visual Studio Community 2022-24 32/64 bit
User avatar
Antonio Linares
Site Admin
Posts: 42716
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Has thanked: 93 times
Been thanked: 103 times
Contact:

Re: Checkboxes not transparent

Post by Antonio Linares »

Tim,

Many thanks for your feedback.

The problem comes from the recent fix in Class TDialog Method Initiate()

If we include TCHECKBOX here:
"TBAR;TGET;TMULTIGET;TBTNBMP;TCOMBOBOX;TWBROWSE;TCBROWSE;TXBROWSE;TLISTBOX;TDBCOMBO;TDATEPICK;TTIMEPICK"
then transparency does not work. Once removed it works fine:

tim.prg

Code: Select all | Expand

#include "FiveWin.ch"

function Main()

   local oDlg, lValue := .F.

   SetDlgGradient( { { 1, RGB( 199, 216, 237 ), RGB( 237, 242, 248 ) } } )

   DEFINE DIALOG oDlg RESOURCE "Test"

   REDEFINE CHECKBOX lValue ID 10 OF oDlg 

   ACTIVATE DIALOG oDlg CENTERED

return nil
tim.rc

Code: Select all | Expand

#include <winresrc.h>
#include <windows.h>

#ifndef WC_TABCONTROL
#define WC_TABCONTROL       "SysTabControl32"
#endif

#ifndef MONTHCAL_CLASS
#define MONTHCAL_CLASS      "SysMonthCal32"
#endif

#ifndef DATETIMEPICK_CLASS
#define DATETIMEPICK_CLASS  "SysDateTimePick32"
#endif

//
// Dialog resources
//
LANGUAGE LANG_NEUTRAL, SUBLANG_NEUTRAL
Test DIALOG 0, 0, 294, 156
STYLE DS_3DLOOK | DS_CENTER | DS_MODALFRAME | DS_SHELLFONT | WS_CAPTION | WS_VISIBLE | WS_POPUP | WS_SYSMENU
CAPTION "Dialog"
FONT 8, "Ms Shell Dlg"
{
    AUTOCHECKBOX    "Check", 10, 93, 60, 118, 23, 0, WS_EX_LEFT
}
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
Posts: 42716
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Has thanked: 93 times
Been thanked: 103 times
Contact:

Re: Checkboxes not transparent

Post by Antonio Linares »

Please download FWH.exe again and it should work fine as expected

thanks!
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
TimStone
Posts: 2967
Joined: Fri Oct 07, 2005 1:45 pm
Location: Trabuco Canyon, CA USA
Has thanked: 25 times
Been thanked: 5 times
Contact:

Re: Checkboxes not transparent

Post by TimStone »

Thank you.

It now works correctly

Tim
Tim Stone
http://www.MasterLinkSoftware.com
http://www.autoshopwriter.com
timstone@masterlinksoftware.com
Using: FWH 23.10 with Harbour 3.2.0 / Microsoft Visual Studio Community 2022-24 32/64 bit
Post Reply