emWin menu fault

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

emWin menu fault

1,093件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by applex on Wed Jul 17 04:32:45 MST 2013
Hi, guys,

I'm using emwin 5.20 on 1788 within freertos, and the hid device is usb keyboard. Now, I face a problem about the MENU. I create the gui by GUIBuilder, The system is dying when a put a menu widget on the windows, and switch the focus by TAB key on the menu. It seemed that the system is broken, cause that the led indicator doesn't work any more.

I tryed several time with diffent numbers of the widgets. the fault is pointed to the MENU.

is it a bug? or anything I forgot to do, but I think the menu should be same as the other widgets.

Please tell me if anyone know the reason.

Thank you.

Alex.
ラベル(1)
0 件の賞賛
返信
1 返信

1,005件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by applex on Fri Jul 19 04:55:20 MST 2013
Finaly, I find the problem:

case WM_MENU:
switch (pData->MsgType)
{
case MENU_ON_INITMENU:
break;
case MENU_ON_ITEMSELECT:
break;
default:
WM_DefaultProc(pMsg);
break;
}
break;
WM_DefaultProc(pMsg); MUST be called in the defualt route.
0 件の賞賛
返信