emwin的text

2021-02-03 12:16

阅读:379

标签:图片   ext   dia   频率   base   lse   creat   buffer   log   

//频率显示
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_GetDialogItem(hWinBase, ID_TEXT_0), frequency_buffer);
}

当用

TEXT_SetText(frequency, frequency_buffer);

的时候出现文字重叠,考虑用

TEXT_SetText(WM_GetDialogItem(hWinBase, ID_TEXT_0), frequency_buffer);
文字就不会重叠

 

技术图片

 

emwin的text

标签:图片   ext   dia   频率   base   lse   creat   buffer   log   

原文地址:https://www.cnblogs.com/ys77/p/11507501.html


评论


亲,登录后才可以留言!