FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Opaque controls
Posts: 1392
Joined: Mon May 14, 2007 09:49 AM
Opaque controls
Posted: Tue Apr 16, 2019 08:30 AM

Hi, all !

How can I make opaque controls on a transparent window ?

Posts: 4043
Joined: Wed Dec 19, 2007 06:40 PM
Re: Opaque controls
Posted: Tue Apr 16, 2019 10:12 AM
Since 1995 ( the first release of FW 1.9 )

i work with FW.

If you have any questions about special functions, maybe i can help.
Posts: 1392
Joined: Mon May 14, 2007 09:49 AM
Re: Opaque controls
Posted: Tue Apr 16, 2019 10:41 AM

Uwe, thanks for your help. However, I need to change the transparency of the window controls transparency on it does not change.

Posts: 4043
Joined: Wed Dec 19, 2007 06:40 PM
Re: Opaque controls
Posted: Tue Apr 16, 2019 11:31 AM
I will have a look at the different controls if bAlphaLevel
is supported like for images.

I need to change the transparency of the window controls transparency


A defined transparent-level of windows or dialog doesn't include the controls as well.

from the buttonbar-test ( have a look at -> bartrnsl.prg. )
The buttonbar-transparentlevel changes but not the buttons.

DEFINE BUTTONBAR oBar OF oWnd SIZE 80, 80 2007
oBar:SetFont( oFont )
oBar:SetColor( { |l,o| If( l, CLR_BLACK, CLR_WHITE ) }, oWnd:nClrPane )
oBar:bClrGrad := { |lInvert| If( lInvert, nArgb( 96, CLR_WHITE ), nArgb( nAlpha % 256, nBarClr ) ) }


regards
Uwe
Since 1995 ( the first release of FW 1.9 )

i work with FW.

If you have any questions about special functions, maybe i can help.
Posts: 7318
Joined: Thu Oct 18, 2012 07:17 PM
Re: Opaque controls
Posted: Tue Apr 16, 2019 12:40 PM

perhaps...

oGRid is a xbrowse allready open

Local hBmp,hBlur

oApp:oGrid:GetDC()
hBmp := MakeBkBmp( oApp:oGrid:hWnd, oApp:oGrid:hDC )
hBlur := Blur( hBmp, 3 )
PalBmpDraw( oApp:oGrid:hDC, 0, 0, hBlur )

DEFINE DIALOG oDlg

DEFINE DIALOG oDlg

DeleteObject( hBmp )

DeleteObject( hBlur )
oApp:oGrid:ReleaseDC()

Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)

I use : FiveWin for Harbour March-April 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
Posts: 1392
Joined: Mon May 14, 2007 09:49 AM
Re: Opaque controls
Posted: Tue Apr 16, 2019 12:45 PM

Thanks !

Continue the discussion