The Calender dialoge has some mixup erros.
1. The manual:
Prototype
void CALENDAR_SetDefaultBkColor(GUI_COLOR Color, unsigned Index);
but should be probably :
Prototype
void CALENDAR_SetDefaultBkColor(unsigned Index, GUI_COLOR Color);
Also , it looks like CALENDAR_SetDefaultBkColor() is same as CALENDAR_SetDefaultColor()
Here is my code, and the output with PC simulation:
CALENDAR_SetDefaultFont(CALENDAR_FI_HEADER, &GUI_Font24B_ASCII);
CALENDAR_SetDefaultFont(CALENDAR_FI_CONTENT, &GUI_Font24B_ASCII);
CALENDAR_SetDefaultBkColor(CALENDAR_CI_WEEKEND,GUI_GREEN);
CALENDAR_SetDefaultBkColor(CALENDAR_CI_WEEKDAY,GUI_GREEN);
CALENDAR_SetDefaultColor(CALENDAR_CI_WEEKEND, GUI_LIGHTMAGENTA);
CALENDAR_SetDefaultSize(CALENDAR_SI_HEADER, 50);
CALENDAR_SetDefaultSize(CALENDAR_SI_CELL_X, 50);
CALENDAR_SetDefaultSize(CALENDAR_SI_CELL_Y, 50);
hCalender = CALENDAR_Create(hBuildWin, 20,20,2015,7,4,0,65000,0);
How to change the background? can give an example callback function to draw a rectangle around the calender?
Thanks
Johanan
1. The manual:
Prototype
void CALENDAR_SetDefaultBkColor(GUI_COLOR Color, unsigned Index);
but should be probably :
Prototype
void CALENDAR_SetDefaultBkColor(unsigned Index, GUI_COLOR Color);
Also , it looks like CALENDAR_SetDefaultBkColor() is same as CALENDAR_SetDefaultColor()
Here is my code, and the output with PC simulation:
CALENDAR_SetDefaultFont(CALENDAR_FI_HEADER, &GUI_Font24B_ASCII);
CALENDAR_SetDefaultFont(CALENDAR_FI_CONTENT, &GUI_Font24B_ASCII);
CALENDAR_SetDefaultBkColor(CALENDAR_CI_WEEKEND,GUI_GREEN);
CALENDAR_SetDefaultBkColor(CALENDAR_CI_WEEKDAY,GUI_GREEN);
CALENDAR_SetDefaultColor(CALENDAR_CI_WEEKEND, GUI_LIGHTMAGENTA);
CALENDAR_SetDefaultSize(CALENDAR_SI_HEADER, 50);
CALENDAR_SetDefaultSize(CALENDAR_SI_CELL_X, 50);
CALENDAR_SetDefaultSize(CALENDAR_SI_CELL_Y, 50);
hCalender = CALENDAR_Create(hBuildWin, 20,20,2015,7,4,0,65000,0);
How to change the background? can give an example callback function to draw a rectangle around the calender?
Thanks
Johanan