Page 1 of 1

Alfredo Arteaga - Tgraph Degradado!

Posted: Mon Mar 31, 2008 12:44 pm
by MGA
Amigo Alfredo, olhe isso:

Image

Tgraph:

METHOD _FillRect( nTop, nLeft, nBottom, nRight, nColor ) CLASS TGraph

LOCAL oBrush, hBru, hOld, nMid

hBru := CreateSolidBrush( nColor )
hOld := SelectObject( ::hDC, hBru )
** IF ::lDegrade
nMid:=(nRight-nLeft)/2
Gradient( ::hDC, { nTop, nLeft, nBottom, nRight-nMid }, nColor, LightColor(175,nColor), .F. )
Gradient( ::hDC, { nTop, nLeft+nMid, nBottom, nRight }, LightColor(175,nColor), nColor, .F. )
** ELSE
** FillRect( ::hDC, { nTop, nLeft, nBottom, nRight }, hBru )
** ENDIF
SelectObject( ::hDC, hOld )
DeleteObject( hBru )

RETURN (Nil)



:D


O que achou meu amigo?

AokiSantos

Posted: Mon Mar 31, 2008 2:25 pm
by Alfredo Arteaga
Mmm... no entiendo que intentas o que te refieres.

Pero con el código en las manos puedes hacer lo que gustes.

Saludos.