extern GUI_FLASH const GUI_FONT GUI_FontHZ_SimSun_24;
const GUI_WIDGET_CREATE_INFO _aDialogCreate_main[4] = {
{ FRAMEWIN_CreateIndirect, NULL, 0, 0, 0, 240,400,0,0},
{ BUTTON_CreateIndirect, "一", GUI_ID_BUTTON0, 40,40, 160,80, 0,0},//xÆeê¼×ø±ê£¬yÆeê¼×ø±ê£¬x3¤¶è£¬y3¤¶è
{ BUTTON_CreateIndirect, "二", GUI_ID_BUTTON1, 40,160,160,80,0,0},
{ BUTTON_CreateIndirect, "三", GUI_ID_BUTTON2, 40,280,160,80,0,0},
};
void UI_main(void)
{
WM_SetDesktopColor(GUI_BLACK); /* Automacally update desktop window */
// WM_SetCreateFlags(WM_CF_MEMDEV); /* Use memory devices on all windows to avoid flicker */
GUI_CURSOR_Show();
//GUI_SetFont(&GUI_FontHZ_SimSun_24);
BUTTON_SetDefaultFont(&GUI_FontHZ_SimSun_24);
GUI_ExecDialogBox(_aDialogCreate_main, GUI_COUNTOF(_aDialogCreate_main), &_cbMain, 0, 0, 0);
}
字库文件已经生成了,文件名就是SimSun_24,可是显示的时候是keil中的格式显示的字,例如把“一”复制到文本框就是“ò»”了显示的就是后者。该怎么修改? |