Page 1 of 1

Checkboxes not transparent

Posted: Wed Mar 12, 2025 11:10 pm
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

Re: Checkboxes not transparent

Posted: Thu Mar 13, 2025 12:23 am
by cnavarro

Re: Checkboxes not transparent

Posted: Thu Mar 13, 2025 3:49 am
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.

Re: Checkboxes not transparent

Posted: Thu Mar 13, 2025 3:49 am
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.

Re: Checkboxes not transparent

Posted: Thu Mar 13, 2025 6:12 am
by Antonio Linares
Dear Tim,

Please download FWH again. The fix is already inluded

waiting for your feedback

best regards

Re: Checkboxes not transparent

Posted: Thu Mar 13, 2025 6:39 pm
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

Re: Checkboxes not transparent

Posted: Thu Mar 13, 2025 9:45 pm
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
}

Re: Checkboxes not transparent

Posted: Thu Mar 13, 2025 9:59 pm
by Antonio Linares
Please download FWH.exe again and it should work fine as expected

thanks!

Re: Checkboxes not transparent

Posted: Thu Mar 13, 2025 10:13 pm
by TimStone
Thank you.

It now works correctly

Tim