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提供的例子时是没有问题的
|