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

Post Reply
User avatar
ukoenig
Posts: 3981
Joined: Wed Dec 19, 2007 6:40 pm
Location: Germany
Contact:

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

Post 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]
Last edited by ukoenig on Fri Mar 21, 2008 6:52 pm, edited 1 time in total.
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
mmercado
Posts: 782
Joined: Wed Dec 19, 2007 7:50 am
Location: Salamanca, Gto., México

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

Post 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
User avatar
Otto
Posts: 4470
Joined: Fri Oct 07, 2005 7:07 pm
Contact:

Post 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 ))
User avatar
ukoenig
Posts: 3981
Joined: Wed Dec 19, 2007 6:40 pm
Location: Germany
Contact:

Gradients on SAY's

Post 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
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.
Post Reply