GetDateFromPos( nAtRow, nAtCol ) INLINE ::dStart + ( ( nAtRow - 1 ) * 7 ) + nAtCol - 1
GetDateFromPos( nAtRow, nAtCol ) INLINE ::dStart + ( Max( nAtRow - 1, 0 ) * 7 ) + nAtCol - 1
#xcommand DEFINE CALEX <oCalex>;
[ <of: OF, WINDOW, DIALOG, PANEL> <oWnd> ];
[ FROM <nTop>, <nLeft> TO <nBottom>, <nRight> ];
[ FIRST_DATE <nFirst> ];
[ COLOR <nClrText> ];
[ <cAdjust: ALL,TOP,LEFT,BOTTOM,RIGHT> ] ;
#xcommand DEFINE CALEX <oCalex>;
[ <of: OF, WINDOW, DIALOG, PANEL> <oWnd> ];
[ FROM <nTop>, <nLeft> TO <nBottom>, <nRight> ];
[ FIRST_DATE <nFirst> ]; // 7 for Sunday
[ COLOR <nClrText> ];
[ <cAdjust: ALL,TOP,LEFT,BOTTOM,RIGHT> ] ;
Silvio.Falconi wrote:yes of course I set 7 but I sawthe sample01.prg ( it is wrong)
Silvio.Falconi wrote:Cristobal,
I saw the version of fjhg, tcalex changed by fjhg, not tcalex changed by Daniel or Cristobal
When You create an appointment then you cannot see it on Month or Week
Only if you close the application and recall the exe you can see it
this is not a doubt but it is a certainty
GetDateFromPos( nAtRow, nAtCol ) INLINE ::dStart + ( Max( nAtRow - 1, 0 ) * 7 ) + nAtCol - 1
there are colors but I cannot change the color appoinment at sampleo1 there is funcrion color... it passed also a date but then not use it
Where is the syncro with Google Calendar ? ...you promised me at fwh 17.07 package ?
I' waiting this ... syncro with google calendar function with FWH. How long be finish?
Function ColorStatus( nType, dFecha )
local aGrad
local nClrT := CLR_BLACK
DEFAULT nType := 0
DO CASE
case nType = 1
aGrad := { { 1, RGB(0x9a,0xcd,0x32), RGB(0x9a,0xcd,0x32) } }
nClrT := CLR_BLACK
case nType = 2
aGrad := { { 1, RGB(0x00,0x80,0xff) , RGB(0x00,0x80,0xff) } }
nClrT := CLR_BLACK
case nType = 3
aGrad := { { 1, RGB(0xff,0xff,0x80), RGB(0xff,0xff,0x80) } }
nClrT := CLR_BLACK
case nType = 4
aGrad := { { 1, RGB(0xff,0x00,0x00), RGB(0xff,0x00,0x00) } }
nClrT := CLR_WHITE
case nType = 5
aGrad := { { 1, RGB(0xc0,0xc0,0xc0), RGB(0xc0,0xc0,0xc0) } }
nClrT := CLR_BLACK
case nType = 6
aGrad := { { 1, METRO_ORANGE, METRO_ORANGE } }
nClrT := CLR_BLACK
case nType = 7
aGrad := { { 1, METRO_LIME, METRO_LIME } }
nClrT := CLR_BLACK
case nType = 8
aGrad := { { 1, METRO_CRIMSON, METRO_CRIMSON } }
nClrT := CLR_BLACK
case nType = 9
aGrad := { { 1, METRO_OLIVE, METRO_OLIVE } }
nClrT := CLR_BLACK
case nType = 10
aGrad := { { 1, METRO_STEEL, METRO_STEEL } }
nClrT := CLR_BLUE
Otherwise
aGrad := { { 1, RGB(0x9a,0xcd,0x32), RGB(0x9a,0xcd,0x32) } }
ENDCASE
return { aGrad, nClrT }
METHOD ColorStatus( nType, dFecha ) CLASS SampleCalex
local aGrad
local nClrT := CLR_BLACK
DEFAULT nType := 0
DO CASE
case nType = 1
aGrad := { { 1, RGB(0x9a,0xcd,0x32), RGB(0x9a,0xcd,0x32) } }
nClrT := CLR_BLACK
case nType = 2
aGrad := { { 1, RGB(0x00,0x80,0xff) , RGB(0x00,0x80,0xff) } }
nClrT := CLR_BLACK
case nType = 3
aGrad := { { 1, RGB(0xff,0xff,0x80), RGB(0xff,0xff,0x80) } }
nClrT := CLR_BLACK
case nType = 4
aGrad := { { 1, RGB(0xff,0x00,0x00), RGB(0xff,0x00,0x00) } }
nClrT := CLR_WHITE
case nType = 5
aGrad := { { 1, RGB(0xc0,0xc0,0xc0), RGB(0xc0,0xc0,0xc0) } }
nClrT := CLR_BLACK
case nType = 6
aGrad := { { 1, METRO_ORANGE, METRO_ORANGE } }
nClrT := CLR_BLACK
case nType = 7
aGrad := { { 1, METRO_LIME, METRO_LIME } }
nClrT := CLR_BLACK
case nType = 8
aGrad := { { 1, METRO_CRIMSON, METRO_CRIMSON } }
nClrT := CLR_BLACK
case nType = 9
aGrad := { { 1, METRO_OLIVE, METRO_OLIVE } }
nClrT := CLR_BLACK
case nType = 10
aGrad := { { 1, METRO_STEEL, METRO_STEEL } }
nClrT := CLR_BLUE
Otherwise
aGrad := { { 1, RGB(0x9a,0xcd,0x32), RGB(0x9a,0xcd,0x32) } }
ENDCASE
return { aGrad, nClrT }
Return to FiveWin for Harbour/xHarbour
Users browsing this forum: No registered users and 68 guests