oWnd:Say() ->Transparent on Gradientfil?

oWnd:Say() ->Transparent on Gradientfil?

Postby dutch » Fri Nov 27, 2009 6:22 pm

Dear All,

I need to use oWnd:Say() on Gradientfil() area and need to Transparnet Backgroup.

How can I do it?

Regards,
Dutch
Regards,
Dutch

FWH 19.01 / xHarbour Simplex 1.2.3 / BCC73 / Pelles C / UEStudio
FWPPC 10.02 / Harbour for PPC (FTDN)
ADS V.9 / MySql / MariaDB
R&R 12 Infinity / Crystal Report XI R2
(Thailand)
User avatar
dutch
 
Posts: 1535
Joined: Fri Oct 07, 2005 5:56 pm
Location: Thailand

Re: oWnd:Say() ->Transparent on Gradientfil?

Postby ukoenig » Fri Nov 27, 2009 9:53 pm

Hello Dutch,

Image

Image

Code: Select all  Expand view

...
...
@  50, 100 TITLE oTitle SIZE 150, 50 of oWnd TRANSPARENT NOBORDER
@  10,  20  TITLETEXT OF oTitle TEXT "TEXT-TEST"  FONT oFont COLOR 128  

// @  50, 100 TITLE oTitle SIZE 200, 100 of oWnd TRANSPARENT
// @  25,  35  TITLETEXT OF oTitle TEXT "TEXT-TEST"  FONT oFont COLOR 128  
// @  50,  35  TITLETEXT OF oTitle TEXT "MORE TEXT"  FONT oFont COLOR 0

ACTIVATE WINDOW oWnd MAXIMIZED ;
ON PAINT W_GRAD( oWnd, hDC )

RETURN ( NIL )

// --------- GRADIENT  --------------------------------------

STATIC FUNCTION W_GRAD( oWnd, hDC )
local aGrad := { { W_MOVE, W_COLOR1, W_COLOR2 }, ;
                          { W_MOVE, W_COLOR2, W_COLOR1 } }        

GradientFill( hDC,  0, 0, oWnd:nHeight, oWnd:nWidth, aGrad, .T. )    // Gradient Top / Bottom, .F. = Left / Right

RETURN NIL
 


Best Regards
Uwe :lol:
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


Return to FiveWin for Harbour/xHarbour

Who is online

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