/********************************************************************* * * MainTask */ void MainTask(void) { LISTBOX_Handle hListBox; int iCharKey; GUI_Init(); GUI_SetBkColor(GUI_BLUE); GUI_Clear(); GUI_SetColor(GUI_WHITE); GUI_SetFont(&GUI_Font32_ASCII); //GUI_DispStringHCenterAt("WIDGET_SimpleListBox - Sample", 160, 5); hListBox = GListBox_Init(); if (NULL == hListBox) { return; } while(1) { iCharKey = GUI_GetKey(); switch (iCharKey) { case 0://进入测试面积 break; case 1://进入测量周长 break; default: break; } } while(1) { _DemoListBox(hListBox); } }
void MainTask(void) { GUI_Init(); WM_SetDesktopColor(0xB00000); GUI_Exec(); while(1) { _DemoListBox(); _DemoListBoxAsChild(); } }
/********************************************************************* * * MainTask */ void MainTask(void) { GUI_Init(); GUI_SetBkColor(GUI_BLUE); GUI_Clear(); GUI_SetColor(GUI_WHITE); GUI_SetFont(&GUI_Font24_ASCII); //GUI_DispStringHCenterAt("WIDGET_SimpleListBox - Sample", 160, 5); while(1) { _DemoListBox(); } }