|
void MainTask_Demo(void) {
BUTTON_Handle hButton;
GUI_Init();
GUI_SetBkColor(GUI_LIGHTGRAY);
GUI_Clear();
GUI_SetColor(GUI_WHITE);
GUI_SetFont(&GUI_Font32B_ASCII);
GUI_DispStringHCenterAt("the first menu", 380, 5);
hButton = BUTTON_Create(10, 20, 120, 40, GUI_ID_OK, WM_CF_SHOW);
//BUTTON_SetSkin(hButton,BUTTON_SKIN_FLEX);
/* Set the button text */
BUTTON_SetText(hButton,"asd" );
// _DemoButton();
}
在模拟器上是可以的,下到半自理就在BUTTON_Create(10, 20, 120, 40, GUI_ID_OK, WM_CF_SHOW);处死循环了,我的EMWIN移植应该没有问题,跑DEMO可以流畅进行。 |
|