Alfredo Arteaga - Tgraph Degradado!

Alfredo Arteaga - Tgraph Degradado!

Postby MGA » Mon Mar 31, 2008 12:44 pm

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

FWH24.04
BCC7.3
HARBOUR3.2
xMate
Pelles´C
TDolphin
MGA
 
Posts: 1254
Joined: Mon Feb 25, 2008 2:54 pm
Location: Brasil/PR/Maringá

Postby Alfredo Arteaga » Mon Mar 31, 2008 2:25 pm

Mmm... no entiendo que intentas o que te refieres.

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

Saludos.
User avatar
Alfredo Arteaga
 
Posts: 326
Joined: Sun Oct 09, 2005 5:22 pm
Location: Mexico


Return to FiveWin para Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 57 guests