I use emWin provided by ST (STemWin based on emWin 5.40)
I tried to change PROGBAR colors but nothing happens.
I downloaded emWin tutorial (both executables and source code). Also the WIDGET_Progbar sample doesn't change the colors:
[img]https://s18.postimg.org/y20p2twa1/WIDGET_Progbar-_Sample.png[/img]
In the source code there is:
Display All
So is it possible to change the colors of the PROGBAR? how?
best regards
Max
I tried to change PROGBAR colors but nothing happens.
I downloaded emWin tutorial (both executables and source code). Also the WIDGET_Progbar sample doesn't change the colors:
[img]https://s18.postimg.org/y20p2twa1/WIDGET_Progbar-_Sample.png[/img]
In the source code there is:
C Source Code
- while(1) {
- PROGBAR_SetFont(ahProgBar[0], &GUI_Font8x16);
- if (LCD_GetDevCap(LCD_DEVCAP_BITSPERPIXEL) <= 4) {
- PROGBAR_SetBarColor(ahProgBar[0], 0, GUI_DARKGRAY);
- PROGBAR_SetBarColor(ahProgBar[0], 1, GUI_LIGHTGRAY);
- } else {
- PROGBAR_SetBarColor(ahProgBar[0], 0, GUI_GREEN);
- PROGBAR_SetBarColor(ahProgBar[0], 1, GUI_RED);
- }
- PROGBAR_SetTextAlign(ahProgBar[0], GUI_TA_HCENTER);
- PROGBAR_SetText(ahProgBar[0], NULL);
So is it possible to change the colors of the PROGBAR? how?
best regards
Max