DROPDOWN_SetFont(hItem, &GUI_FontSongFront18); DROPDOWN_AddString(hItem, Chinese); DROPDOWN_AddString(hItem, English); // // Initialization of '废话' // hItem = WM_GetDialogItem(pMsg->hWin, ID_TEXT_4); TEXT_SetFont(hItem, &GUI_FontSongFront18); TEXT_SetText(hItem, so); //...
TEXT_SetFont(WM_GetDialogItem(hWin,GUI_ID_TEXT0),&GUI_FontFontSong16); TEXT_SetTextColor(WM_GetDialogItem(hWin,GUI_ID_TEXT1), GUI_GREEN); TEXT_SetFont(WM_GetDialogItem(hWin,GUI_ID_TEXT1),&GUI_FontFontSong32); TEXT_SetTextColor(WM_GetDialogItem(hWin,GUI_ID_TEXT2), GUI_BLUE)...
//频率显示 TEXT_Handle frequency = TEXT_CreateEx(x, y, xSize, ySize, hWinBase, WM_CF_SHOW, TEXT_CF_TOP|TEXT_CF_VCENTER, ID_TEXT_0, ""); TEXT_SetFont(frequency, GUI_FONT_D24X32); if(strlen(frequency_buffer)==0){ TEXT_SetText(frequency, "28.5"); }else { TEXT_SetText(WM_...
① 在 case WM_INIT_DIALOG中对EDIT 进行WM_SetFocus操作时,窗体不能正确显示;单独在MainTask函数调...
TEXT_SetFont(WM_GetDialogItem(Window_HItem,ID_TEXT_1), &GUI_FontHZ24);TEXT_SetText(WM_Get...
TEXT_SetFont(hItem, GUI_FONT_D32); TEXT_SetTextColor(hItem, GUI_MAKE_COLOR(0x00FFFFFF)); TEXT_SetText(hItem,"00");break;default: WM_DefaultProc(pMsg);break; } }//USER START (Optionally insert additional public code)voidMainTask(void) { ...
// Change font of text widget // hItem = WM_GetDialogItem(hWin, GUI_ID_TEXT0); //---(6) TEXT_SetFont(hItem, pFont); // // Adjust size text widget // WM_GetWindowRectEx(hItem, &Rect); //---(7) WM_SetWindowPos(hItem, Rect.x0, Rect.y0, Rect.x1 - Rect.x0 + 1 +...
FRAMEWIN_SetTitleHeight(hWin,30); // //初始化文本控件 // TEXT_SetFont(WM_GetDialogItem(hWin,GUI_ID_TEXT0),&GUI_FontD36x48); break; /* 定时器消息 */ caseWM_TIMER: //---(1) Count++; sprintf(buf, "%04d", Count); TEXT_SetText(WM_GetDialogItem(hWin,GUI_ID_TEXT0),(const...
TEXT_SetText(WM_GetDialogItem(pMsg->hWin, ID_TEXT_0), "");// Initialization of '1'for(i...
首先,在建立的对话框上面右击鼠标,选择Set font。弹出如下界面,并选择字体GUI_FONT_32B_ASCII,点击OK。设置好字体以后再设置对齐方式,还是右击鼠标,选择Set text alignment,并选择居中配置完成后,上面的文本Framewin会居中显示,然后还是鼠标右击,选择Set title text,并更改Framewin为armfly,修改的地方在左下角:设置好...