/////////////////////// ver5.22/////////////////////////////
case GUI_KEY_UP: /*方向上*/
GUI_SendKeyMsg(GUI_KEY_UP, 1);
break;
case GUI_KEY_DOWN: /*方向下*/
GUI_SendKeyMsg(GUI_KEY_DOWN, 1);
break;
case GUI_KEY_LEFT: /*方向左*/
GUI_SendKeyMsg(GUI_KEY_LEFT, 1);
break;
case GUI_KEY_RIGHT: /*方向右*/
GUI_SendKeyMsg(GUI_KEY_RIGHT, 1);
break;
case GUI_KEY_PGUP: /*+*/
if(KeyPageSt==0)
GUI_SendKeyMsg(GUI_KEY_PGUP, 0);//
else
GUI_SendKeyMsg(GUI_KEY_PGUP, 1);
break;
case GUI_KEY_PGDOWN: /*-*/
if(KeyPageSt==0)
GUI_SendKeyMsg(GUI_KEY_PGDOWN, 0);
else
GUI_SendKeyMsg(GUI_KEY_PGDOWN, 1);
break;
////////////////////////////////////////////////////////
static const GUI_WIDGET_CREATE_INFO _aYXDialogCreate[] = {
{ FRAMEWIN_CreateIndirect,"",ID_FRAMEWIN_0, 0, 0, 320, 240,0,0},
{ MULTIPAGE_CreateIndirect, "Multipage", ID_MULTIPAGE_0, 0, 2, 314, 204, 0, 0x0, 0 },
};
static const GUI_WIDGET_CREATE_INFO _aYX_1_DialogCreate[] = {
{ WINDOW_CreateIndirect, "P1", ID_WINDOW_0, 0, 80, 310, 180, 0, 0x0, 0 },
{ LISTVIEW_CreateIndirect, "Listview1", ID_LISTVIEW_0, 0, 0, 310, 175, 0, 0x0, 0 },
};
static const GUI_WIDGET_CREATE_INFO _aYX_2_DialogCreate[] = {
{ WINDOW_CreateIndirect, "P2", ID_WINDOW_1, 0, 80, 310, 180, 0, 0x0, 0 },
{ LISTVIEW_CreateIndirect, "Listview2", ID_LISTVIEW_1, 0, 0, 310, 175, 0, 0x0, 0 },
};
static const GUI_WIDGET_CREATE_INFO _aYX_3_DialogCreate[] = {
{ WINDOW_CreateIndirect, "P3", ID_WINDOW_2, 0, 80, 310, 180, 0, 0x0, 0 },
{ LISTVIEW_CreateIndirect, "Listview3", ID_LISTVIEW_2, 0, 0, 310, 175, 0, 0x0, 0 },
};
static const GUI_WIDGET_CREATE_INFO _aYX_4_DialogCreate[] = {
{ WINDOW_CreateIndirect, "P4", ID_WINDOW_3, 0, 80, 310, 180, 0, 0x0, 0 },
{ LISTVIEW_CreateIndirect, "Listview4", ID_LISTVIEW_3, 0, 0, 310, 175, 0, 0x0, 0 },
};
////////////////////////////////////////////////////////
Q1:FRAMEWIN->P1->LISTVIEW
->P2->LISTVIEW
->P3->LISTVIEW
->P4->LISTVIEW
Focus always in LISTVIEW when the window is open, not in MULTIPAGE, change the focus setting has no effect, PAUP / PADOWN button does not respond to page switch (focus in listview ),
I can only send GUI_SendKeyMsg (GUI_KEY_PGUP, 0) message to the parent window, by manually change MULTIPAGE_SelectPage to switch.
Q2:MULTIPAGE after switching found, the window has been switched, the focus and message response is still in P1‘callbackfun, When I chose P2 to exit the window and open it again, focus in P2,but the message response is still in P1.
What can I do. :( :( :(
case GUI_KEY_UP: /*方向上*/
GUI_SendKeyMsg(GUI_KEY_UP, 1);
break;
case GUI_KEY_DOWN: /*方向下*/
GUI_SendKeyMsg(GUI_KEY_DOWN, 1);
break;
case GUI_KEY_LEFT: /*方向左*/
GUI_SendKeyMsg(GUI_KEY_LEFT, 1);
break;
case GUI_KEY_RIGHT: /*方向右*/
GUI_SendKeyMsg(GUI_KEY_RIGHT, 1);
break;
case GUI_KEY_PGUP: /*+*/
if(KeyPageSt==0)
GUI_SendKeyMsg(GUI_KEY_PGUP, 0);//
else
GUI_SendKeyMsg(GUI_KEY_PGUP, 1);
break;
case GUI_KEY_PGDOWN: /*-*/
if(KeyPageSt==0)
GUI_SendKeyMsg(GUI_KEY_PGDOWN, 0);
else
GUI_SendKeyMsg(GUI_KEY_PGDOWN, 1);
break;
////////////////////////////////////////////////////////
static const GUI_WIDGET_CREATE_INFO _aYXDialogCreate[] = {
{ FRAMEWIN_CreateIndirect,"",ID_FRAMEWIN_0, 0, 0, 320, 240,0,0},
{ MULTIPAGE_CreateIndirect, "Multipage", ID_MULTIPAGE_0, 0, 2, 314, 204, 0, 0x0, 0 },
};
static const GUI_WIDGET_CREATE_INFO _aYX_1_DialogCreate[] = {
{ WINDOW_CreateIndirect, "P1", ID_WINDOW_0, 0, 80, 310, 180, 0, 0x0, 0 },
{ LISTVIEW_CreateIndirect, "Listview1", ID_LISTVIEW_0, 0, 0, 310, 175, 0, 0x0, 0 },
};
static const GUI_WIDGET_CREATE_INFO _aYX_2_DialogCreate[] = {
{ WINDOW_CreateIndirect, "P2", ID_WINDOW_1, 0, 80, 310, 180, 0, 0x0, 0 },
{ LISTVIEW_CreateIndirect, "Listview2", ID_LISTVIEW_1, 0, 0, 310, 175, 0, 0x0, 0 },
};
static const GUI_WIDGET_CREATE_INFO _aYX_3_DialogCreate[] = {
{ WINDOW_CreateIndirect, "P3", ID_WINDOW_2, 0, 80, 310, 180, 0, 0x0, 0 },
{ LISTVIEW_CreateIndirect, "Listview3", ID_LISTVIEW_2, 0, 0, 310, 175, 0, 0x0, 0 },
};
static const GUI_WIDGET_CREATE_INFO _aYX_4_DialogCreate[] = {
{ WINDOW_CreateIndirect, "P4", ID_WINDOW_3, 0, 80, 310, 180, 0, 0x0, 0 },
{ LISTVIEW_CreateIndirect, "Listview4", ID_LISTVIEW_3, 0, 0, 310, 175, 0, 0x0, 0 },
};
////////////////////////////////////////////////////////
Q1:FRAMEWIN->P1->LISTVIEW
->P2->LISTVIEW
->P3->LISTVIEW
->P4->LISTVIEW
Focus always in LISTVIEW when the window is open, not in MULTIPAGE, change the focus setting has no effect, PAUP / PADOWN button does not respond to page switch (focus in listview ),
I can only send GUI_SendKeyMsg (GUI_KEY_PGUP, 0) message to the parent window, by manually change MULTIPAGE_SelectPage to switch.
Q2:MULTIPAGE after switching found, the window has been switched, the focus and message response is still in P1‘callbackfun, When I chose P2 to exit the window and open it again, focus in P2,but the message response is still in P1.
What can I do. :( :( :(