bClrGrad Not working for me
Posted: Fri May 27, 2011 6:02 pm
Hi again,
I'm trying to get grading on a dialog. Below is the code I'm using, but it does nothing:
Help and ideas are greatly appreciated.
Reinaldo.
I'm trying to get grading on a dialog. Below is the code I'm using, but it does nothing:
Code: Select all | Expand
DEFINE DIALOG oDlg RESOURCE "presentacion" TRANSPARENT COLOR RGB(240,240,255),RGB(240,240,255)
oDlg:bClrGrad = { | lInvert | If( ! lInvert,;
{ { 0.25, nRGB( 129, 132, 135 ), nRGB( 54, 58, 62 ) },;
{ 0.75, nRGB( 20, 40, 60 ), nRGB( 5, 10, 15 ) } },;
{ { 0.25, nRGB( 160, 173, 174 ), nRGB( 67, 112, 133 ) },;
{ 0.75, nRGB( 11, 66, 94 ), nRGB( 74, 134, 187 ) } } ) }
oDlg:nClrText = { | lInvert | If( ! lInvert, nRGB( 235, 160, 86 ), nRGB( 20, 20, 20 ) ) }
ACTIVATE DIALOG oDlg NOWAIT VALID ( oSelf:hide(), .F.) ON init oDlg:move(-5,-5,-10-20)
oDlg:hide()
Help and ideas are greatly appreciated.
Reinaldo.