Antonio Linares wrote:Francsico,
Puedes proporcionar algún ejemplo pequeño y autocontenido que podamos probar aqui ? gracias
#include "FiveWin.ch"
function Main()
local oDlg, lValue := .T.
local aColors := { { 0.8, nRGB(225,125,40),nRGB(130,112,0) }, { 0.8, nRGB(130,112,0),nRGB(225,125,40) } }
DEFINE DIALOG oDlg SIZE 500, 300 TRANSPARENT
@ 2, 2 CHECKBOX lvalue PROMPT "Test" OF oDlg SIZE 80, 20
ACTIVATE DIALOG oDlg CENTERED ;
ON INIT GradBrush( oDlg, aColors )
return nil
function GradBrush( oDlg, aColors )
local hDC, hBmp, hBmpOld, oBrush
hDC = CreateCompatibleDC( oDlg:GetDC() )
hBmp = CreateCompatibleBitMap( oDlg:hDC, oDlg:nWidth, oDlg:nHeight )
hBmpOld = SelectObject( hDC, hBmp )
GradientFill( hDC, 0, 0, oDlg:nHeight, oDlg:nWidth, aColors )
DeleteObject( oDlg:oBrush:hBrush )
oDlg:oBrush:hBitmap = hBmp
oDlg:oBrush:hBrush = CreatePatternBrush( hBmp )
SelectObject( hDC, hBmpOld )
oDlg:ReleaseDC()
return nil
Return to FiveWin para Harbour/xHarbour
Users browsing this forum: Google [Bot] and 60 guests