Opaque controls

Opaque controls

Postby Natter » Tue Apr 16, 2019 8:30 am

Hi, all !

How can I make opaque controls on a transparent window ?
Natter
 
Posts: 1224
Joined: Mon May 14, 2007 9:49 am

Re: Opaque controls

Postby ukoenig » 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.
User avatar
ukoenig
 
Posts: 4043
Joined: Wed Dec 19, 2007 6:40 pm
Location: Germany

Re: Opaque controls

Postby Natter » 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.
Natter
 
Posts: 1224
Joined: Mon May 14, 2007 9:49 am

Re: Opaque controls

Postby ukoenig » 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.
User avatar
ukoenig
 
Posts: 4043
Joined: Wed Dec 19, 2007 6:40 pm
Location: Germany

Re: Opaque controls

Postby Silvio.Falconi » 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 November 2023 - January 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
User avatar
Silvio.Falconi
 
Posts: 7074
Joined: Thu Oct 18, 2012 7:17 pm

Re: Opaque controls

Postby Natter » Tue Apr 16, 2019 12:45 pm

Thanks !
Natter
 
Posts: 1224
Joined: Mon May 14, 2007 9:49 am


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 51 guests