I have a possession in this screen that doesn't paint the buttons and nor the bar of the color that I am selecting
As I can solve this problem
I use Dialog and no window
DEFINE BRUSH oBrush FILENAME oPub:oBrushS
DEFINE DIALOG oDlg RESOURCE "SV_CADGER" TITLE "CADASTRO DE CLIENTES" FONT oWnd:oFont BRUSH oBrush
blablabla
ACTIVATE DIALOG oDlg CENTERED ON INIT BuildCli( oDlg,oBrw )
**************************************//***************************************
STATIC FUNCTION BuildCli( oDlg,oBrw )
**************************************//***************************************
LOCAL oBar, oBtn
DEFINE BUTTONBAR 2007 oBar OF oDlg
DEFINE BUTTON oBtn OF oBar RESOURCE 'ICON_NEW' ;
NOBORDER TOOLTIP 'Incluir cliente' ;
ACTION EditCliente(oBrw,.T.,.T.)
oBar: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 ) } } ) }
oBar:nClrText = { | lInvert | If( ! lInvert,nRGB( 235, 160, 86 ), nRGB( 20, 20, 20 ) ) }
RETURN