FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour BtnBmp is not transparent on a folder
Posts: 9022
Joined: Thu Oct 06, 2005 08:17 PM

BtnBmp is not transparent on a folder

Posted: Sun Sep 04, 2011 10:34 AM
This is a sample of the problem (please activate themes):

Code (fw): Select all Collapse
#include "Fivewin.ch"


FUNCTION MAIN()

    LOCAL oDlg, oFld

    DEFINE DIALOG oDlg;
           RESOURCE "FOLDER"

    REDEFINE FOLDER oFld;
             ID 101 OF oDlg;
             PROMPTS "Test";
             DIALOGS "TEST"

    REDEFINE BTNBMP;
             ID 101 OF oFld:aDialogs[ 1 ];
             FILE "c:\fwh\bitmaps\open.bmp";
             NOBORDER

    REDEFINE BUTTON;
             ID 201 OF oDlg;
             ACTION oDlg:End()

    ACTIVATE DIALOG oDlg;
             CENTER

    RETURN NIL


The RC file:

Code (fw): Select all Collapse
FOLDER DIALOG 49, 52, 365, 295
STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
CAPTION "Folder test"
FONT 8, "MS Sans Serif"
LANGUAGE LANG_NEUTRAL, SUBLANG_NEUTRAL
{
 CONTROL "", 101, "SysTabControl32", 0 | WS_CHILD | WS_VISIBLE, 5, 5, 355, 265
 CONTROL "&Close", 201, "BUTTON", BS_PUSHBUTTON | WS_CHILD | WS_VISIBLE | WS_TABSTOP, 5, 275, 40, 15
}


TEST DIALOG 49, 52, 365, 295
STYLE WS_CHILD
FONT 8, "MS Sans Serif"
LANGUAGE LANG_NEUTRAL, SUBLANG_NEUTRAL
{
 CONTROL "", 101, "TBtnBmp", 0 | WS_CHILD | WS_VISIBLE, 10, 10, 30, 25
}


EMG
Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM

Re: BtnBmp is not transparent on a folder

Posted: Sun Sep 04, 2011 11:02 AM

I see the button transparent without manifest and not transparent with manifest. Is that you see too?

Regards



G. N. Rao.

Hyderabad, India
Posts: 9022
Joined: Thu Oct 06, 2005 08:17 PM

Re: BtnBmp is not transparent on a folder

Posted: Sun Sep 04, 2011 12:45 PM

Yes.

EMG

Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM

Re: BtnBmp is not transparent on a folder

Posted: Sun Sep 04, 2011 01:15 PM
Working well with this addition
Code (fw): Select all Collapse
    if IsAppThemed()
       oBtn:SetColor( CLR_BLACK, CLR_WHITE )
    endif
Regards



G. N. Rao.

Hyderabad, India
Posts: 9022
Joined: Thu Oct 06, 2005 08:17 PM

Re: BtnBmp is not transparent on a folder

Posted: Sun Sep 04, 2011 01:18 PM

Ok, but it is not the correct fix. We need the trasparence, right?

EMG

Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM

Re: BtnBmp is not transparent on a folder

Posted: Sun Sep 04, 2011 01:37 PM

I agree. This has been so all the time.
This is only a workaround in the application.

Btnbmp.prg needs to be modified.

Regards



G. N. Rao.

Hyderabad, India
Posts: 9022
Joined: Thu Oct 06, 2005 08:17 PM

Re: BtnBmp is not transparent on a folder

Posted: Sun Sep 04, 2011 01:39 PM

Ok, thank you.

EMG

Continue the discussion