No solo he modificado valores sino que he modificado la clase con una propiedad l2007.
También he cambiado Gradient por gradientfull.
No esta perfecto pero da el pego.
_ me he mirado la clase "TRBtn"
en la Cabecera añadir
Code: Select all
#include "Colors.ch"
// Colors Office 2007
#define BLUEBOX0 RGB( 141, 178, 227 )
#define BLUEBOX1 RGB( 197, 210, 223 )
#define BLUEBOX2 RGB( 237, 242, 248 )
#define BLUE0 RGB( 218, 229, 243 )
#define BLUE1 RGB( 199, 216, 237 )
#define BLUE2 RGB( 194, 217, 240 )
#define BLUE3 RGB( 191, 219, 255 )
En las propiedades de la Clase (TOutLook2003)
En el Metodo (METHOD Paint() CLASS TOutLook2003)
Declarar variable
Donde
Code: Select all
Gradient( ::hDC, { nTop, 0, nTop + 7, ::nWidth() }, DARKBLUE, LIGHTBLUE, .T. )
Reemplazar por
Code: Select all
If ::l2007
aGrad := { {0.3, BLUE0, BLUE0 }, { 0.7, BLUE1, BLUE0 } }
GradientFill( ::hDC, nTop , 0, nTop + 7, ::nWidth() , aGrad )
Else
Gradient( ::hDC, { nTop, 0, nTop + 7, ::nWidth() }, DARKBLUE, LIGHTBLUE, .T. )
EndIf
En las propiedades de la clase TOutLook2003Group
En el método (METHOD Paint( lOver ) CLASS TOutLook2003Group)
Declarar variables
Donde
Code: Select all
Gradient( hDC := oCon:GetDC(), { nTop, 0, nTop + 30, oCon:nWidth() },;
If( lOver, If( ::lSelected, ::nClrEnd, LIGHTORANGE2 ), ::nClrStart ),;
If( lOver, If( ::lSelected, ::nClrStart, DARKORANGE2 ), ::nClrEnd ), .T. )
Reemplazar por
Code: Select all
If ::l2007
aGrad := { {0.3, BLUE0, BLUE0 }, { 0.7, BLUE1, BLUE0 } }
aGradHigh := { {1/3, nRGB( 253,212,168 ), nRGB( 251,178,99 ) }, {2/3, nRGB( 250,157,52 ), nRGB( 252,234,163 ) } }
aGradOver := { {1 , nRGB( 255,215,84), nRGB( 255, 253, 222 ) } }
GradientFill( hDC := oCon:GetDC() , nTop, 0, nTop + 30, oCon:nWidth() , If( lOver, aGradOver , If( ::lSelected , aGradHigh , aGrad) ) )
Else
Gradient( hDC := oCon:GetDC(), { nTop, 0, nTop + 30, oCon:nWidth() },;
If( lOver, If( ::lSelected, ::nClrEnd, LIGHTORANGE2 ), ::nClrStart ),;
If( lOver, If( ::lSelected, ::nClrStart, DARKORANGE2 ), ::nClrEnd ), .T. )
EndIf
Espero que también te funcione mas o menos bien.
Gracias.
Pere