Page 1 of 1

GRADIENT(..) -Color-Function to use for a REDEFINE SAY ???

Posted: Fri Mar 21, 2008 1:51 pm
by ukoenig
Hello,

I'm busy to have a Titlebar-designer for the FWH-users.
I found the function Gradient :
For just a try, i did this :

REDEFINE SAY oSay1 ID 101 OF oDlg5 PROMPT e_TEXT ;
COLOR Gradient( GETDC(oSay1), { 10, 0, 50, 800 },CLR_BLUE, CLR_WHITE, .T. )

Image

{10, 0, 50, 800} is just to see, how it looks.
I need the function as COLOR belongs the
REDEFINE SAY Top,Left,Bottom, Right

With that, it is very easy, to do something similar
like in Via-Coral.
Maybe it is possible to have GRADIENT horizontal ?

Regards

Uwe :lol: [/img]

Re: GRADIENT(..) -Color-Function to use for a REDEFINE SAY ?

Posted: Fri Mar 21, 2008 5:11 pm
by mmercado
Hi Uwe:
ukoenig wrote:Maybe it is possible to have GRADIENT horizontal ?
Gradient( hDC, { nTop, nLeft, nHeight, nWidth }, nColorFrom, nColorTo, .F. )

Regards.

Manuel Mercado

Posted: Fri Mar 21, 2008 5:39 pm
by Otto
Uwe,
Is the use oft he Gradient function valid?
I remember Antonio suggested to use instead of
Bmp’s.
Regards,
Otto

DEFINE BRUSH oBrush FILENAME "gradient.bmp"

@ 4/2.05, 95/2.05 SAY oAufname PROMPT " " + scPlanName OF oDlg SIZE 350/2.05,22/2.05 PIXEL FONT oWhSetup:oFntXXL() COLORS RGB(0,0,0),RGB(255,170,85)
oAufname:lTransparent = .T.
ACTIVATE DIALOG oDlg CENTERED ;
ON INIT (oAufname:SetBrush( oBrush ))

Gradients on SAY's

Posted: Fri Mar 21, 2008 6:01 pm
by ukoenig
Hello Otto,

I will have a look at your sample.
I'm just busy to work with GRADIENTS on SAY's
So FW-users can have Infobars as well.
When i finish the Logic, it could to be used
on many things. The source will be in the forum.

Regards

Uwe