REQUEST DBFCDX
REQUEST HB_LANG_ES // Que todos los mensajes me los saque en español
REQUEST HB_CODEPAGE_ESWIN // Los codigos de pagina tambien en español
function Main()
HB_LANGSELECT( 'ES' ) //Selecciona lenguaje español
HB_SETCODEPAGE( 'ESWIN' ) //Selecciona el codigo de pagina español
SET DATE FORMAT "MM/DD/YYYY"
SET DELETE ON
SampleCalex():New()
return nilSolo he añadido el soporte harbour para castellano y he hecho pruebas anotando "sábado" en todos los días y funciona. Parece que el problema lo genera la función DrawTextTransparent( hDC, cText , aArea, nStyle ) del método siguiente:
//----------------------------------------------------------------------------//
// all header will be painted over nTopMargin ( nTopMargin - nDNameHeight )
//
// ***************** > Header
// ----------------- > TopMargin
//
METHOD PaintHeader( hDC ) CLASS TMonthView
local dFirstDateWeek := ::dDate - DoW( ::dDate ) + 1
local n, nStyle
local aArea
local cText, nOldClr
local aCoor
nStyle = nOR( DT_SINGLELINE, DT_CENTER, DT_VCENTER )
for n = 0 to 6
aCoor = ::GetCoorFromPos( 1, n + 1 )
aArea = { ::nTopMargin - ::nDNameHeight, aCoor[ 2 ], ::nTopMargin, aCoor[ 2 ] + aCoor[ 3 ] }
cText = CDoW( dFirstDateWeek + n )
if aCoor[ 3 ] < 100
cText = SubStr( cText, 1, 3 )
endif
nOldClr = SetTextColor( hDC, ::nClrText )
DrawTextTransparent( hDC, cText , aArea, nStyle )
SetTextColor( hDC, nOldClr )
next
return niAlguna pista?
PD.: Enhorabuena a Daniel y resto de creadores puesto que es una magnífica herramienta.
Grácias
Andrés González desde Mallorca
