Alfredo Arteaga - Tgraph Degradado!

Post Reply
MGA
Posts: 1219
Joined: Mon Feb 25, 2008 2:54 pm
Location: Brasil/PR/Maringá
Contact:

Alfredo Arteaga - Tgraph Degradado!

Post 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
ubiratanmga@gmail.com

FWH17.04
FWPPC
Harbour/xHarbour
xMate
Pelles´C
TDolphin
User avatar
Alfredo Arteaga
Posts: 326
Joined: Sun Oct 09, 2005 5:22 pm
Location: Mexico
Contact:

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