嵌入式学习小组
直播中

李艳婷

7年用户 246经验值
私信 关注

emwin edit控件没有用

static const GUI_WIDGET_CREATE_INFO Frm_password_Create[] = {
  { FRAMEWIN_CreateIndirect, "Frm_password", ID_FRAMEWIN_0, 0, 10, 800, 480, 0, 0x0, 0 },
  { TEXT_CreateIndirect, "Text", ID_TEXT_0, 0, 0, 790, 100, 0, 0x64, 0 },
  { TEXT_CreateIndirect, "Text", ID_TEXT_1, 0, 100, 790, 50, 0, 0x64, 0 },
  { EDIT_CreateIndirect, NULL, ID_EDIT_0, 250, 150, 280, 50, 0, 0x64, 0 },
  { BUTTON_CreateIndirect, "Button", ID_BUTTON_0, 275, 410, 120, 60, 0, 0x0, 0 },
  { BUTTON_CreateIndirect, "Button", ID_BUTTON_1, 155, 350, 120, 60, 0, 0x0, 0 },
  { BUTTON_CreateIndirect, "Button", ID_BUTTON_2, 275, 350, 120, 60, 0, 0x0, 0 },
  { BUTTON_CreateIndirect, "Button", ID_BUTTON_3, 395, 350, 120, 60, 0, 0x0, 0 },
  { BUTTON_CreateIndirect, "Button", ID_BUTTON_4, 155, 290, 120, 60, 0, 0x0, 0 },
  { BUTTON_CreateIndirect, "Button", ID_BUTTON_5, 275, 290, 120, 60, 0, 0x0, 0 },
  { BUTTON_CreateIndirect, "Button", ID_BUTTON_6, 395, 290, 120, 60, 0, 0x0, 0 },
  { BUTTON_CreateIndirect, "Button", ID_BUTTON_7, 155, 230, 120, 60, 0, 0x0, 0 },
  { BUTTON_CreateIndirect, "Button", ID_BUTTON_8, 275, 230, 120, 60, 0, 0x0, 0 },
  { BUTTON_CreateIndirect, "Button", ID_BUTTON_9, 395, 230, 120, 60, 0, 0x0, 0 },
  { BUTTON_CreateIndirect, "Button", ID_BUTTON_10, 155, 410, 120, 60, 0, 0x0, 0 },
  { BUTTON_CreateIndirect, "Button", ID_BUTTON_11, 395, 410, 120, 60, 0, 0x0, 0 },
  { BUTTON_CreateIndirect, "Button", ID_BUTTON_12, 515, 350, 120, 120, 0, 0x0, 0 },
  { BUTTON_CreateIndirect, "Button", ID_BUTTON_13, 515, 230, 120, 60, 0, 0x0, 0 },
  { BUTTON_CreateIndirect, "Button", ID_BUTTON_14, 515, 290, 120, 60, 0, 0x0, 0 },
};
这个资源列表中的其他小控件都能创建成功,就EDIT控件的那一片区域背景色一直是黑色,通过函数来设置背景颜色也不能改变,而且文字也不显示。
在板子上跑emwin提供的例子时是没有问题的

回帖(1)

徐娟

2019-3-14 08:45:35
最好的办法是:你看看跟例子上有哪些差别。。。
举报

更多回帖

发帖
×
20
完善资料,
赚取积分