初级会员
- 积分
- 85
- 金钱
- 85
- 注册时间
- 2011-9-6
- 在线时间
- 10 小时
|
5金钱
用GUIBuilder做的进度条,带皮肤的,进度条颜色可以修改,但是字体颜色不能修改,怎么解决?
程序如下:
PROGBAR_SKINFLEX_PROPS MY_PROGBAR;
CreateFramewin();
MY_PROGBAR.aColorLowerL[0] = GUI_RED;
MY_PROGBAR.aColorLowerL[1] = GUI_RED;
MY_PROGBAR.aColorLowerR[0] = GUI_BLUE;
MY_PROGBAR.aColorLowerR[1] = GUI_BLUE;
MY_PROGBAR.aColorUpperL[0] = GUI_RED;
MY_PROGBAR.aColorUpperL[1] = GUI_RED;
MY_PROGBAR.aColorUpperR[0] = GUI_BLUE;
MY_PROGBAR.aColorUpperR[1] = GUI_BLUE;
MY_PROGBAR.ColorFrame = GUI_ORANGE;
PROGBAR_SetSkinFlexProps(&MY_PROGBAR,0);
PROGBAR_SetFont(jason_hItem_PROGBAR,&GUI_Font24_ASCII);
PROGBAR_SetTextColor(jason_hItem_PROGBAR,0,GUI_WHITE);
PROGBAR_SetTextColor(jason_hItem_PROGBAR,1,GUI_BLACK);
PROGBAR_SetText(jason_hItem_PROGBAR, "Tank empty");
while(1)
{
prog_i++;
PROGBAR_SetValue(jason_hItem_PROGBAR, prog_i);
GUI_Delay(30);
}
|
|