// EDIT_SetText(hWin, "");
// EDIT_SetTextColor(hWin, EDIT_CI_ENABLED, 0x00000000);
// EDIT_SetFont(hWin,&GUI_Font24_1);
// EDIT_SetTextAlign(hWin, GUI_TA_LEFT | GUI_TA_VCENTER);
// EDIT_SetDecMode(WM_GetDialogItem(hWin,ID_EDIT_0),0,0,256,2,0);
//
// Initialization of 'ESC'
//
hWin = WM_GetDialogItem(pMsg->hWin, ID_BUTTON_DEL);
BUTTON_SetFont(hWin,&GUI_Font24_1);
//
// Initialization of '2'
//
hWin = WM_GetDialogItem(pMsg->hWin, ID_BUTTON_1);
BUTTON_SetFont(hWin,&GUI_Font24_1);
//
// Initialization of '1'
//
hWin = WM_GetDialogItem(pMsg->hWin, ID_BUTTON_2);
BUTTON_SetFont(hWin,&GUI_Font24_1);
//
// Initialization of '3'
//
hWin = WM_GetDialogItem(pMsg->hWin, ID_BUTTON_3);
BUTTON_SetFont(hWin,&GUI_Font24_1);
//
// Initialization of '4'
//
hWin = WM_GetDialogItem(pMsg->hWin, ID_BUTTON_4);
BUTTON_SetFont(hWin,&GUI_Font24_1);
//
// Initialization of '5'
//
hWin = WM_GetDialogItem(pMsg->hWin, ID_BUTTON_5);
BUTTON_SetFont(hWin,&GUI_Font24_1);
//
// Initialization of '6'
//
hWin = WM_GetDialogItem(pMsg->hWin, ID_BUTTON_6);
BUTTON_SetFont(hWin,&GUI_Font24_1);
//
// Initialization of '7'
//
hWin = WM_GetDialogItem(pMsg->hWin, ID_BUTTON_7);
BUTTON_SetFont(hWin,&GUI_Font24_1);
//
// Initialization of '8'
//
hWin = WM_GetDialogItem(pMsg->hWin, ID_BUTTON_8);
BUTTON_SetFont(hWin,&GUI_Font24_1);
//
// Initialization of '9'
//
hWin = WM_GetDialogItem(pMsg->hWin, ID_BUTTON_9);
BUTTON_SetFont(hWin,&GUI_Font24_1);
//
// Initialization of '0'
//
hWin = WM_GetDialogItem(pMsg->hWin, ID_BUTTON_0);
BUTTON_SetFont(hWin,&GUI_Font24_1);
//
// Initialization of 'DEL'
//
hWin = WM_GetDialogItem(pMsg->hWin, GUI_ID_CANCEL);
BUTTON_SetFont(hWin,&GUI_Font24_1);
//
// Initialization of 'OK'
//
hWin = WM_GetDialogItem(pMsg->hWin, GUI_ID_OK);
BUTTON_SetFont(hWin,&GUI_Font24_1);
// USER START (Optionally insert additional code for further widget initialization)
// USER END
break;
case WM_PAINT:
PaintDialog_kb(pMsg);
break;
case WM_KEY:
switch (((WM_KEY_INFO*)(pMsg->Data.p))->Key)
{
case GUI_KEY_ESCAPE:
GUI_EndDialog(hWin, 1);
break;
case GUI_KEY_ENTER:
GUI_EndDialog(hWin, 0);
break;
}
break;
case WM_NOTIFY_PARENT:
Id = WM_GetId(pMsg->hWinSrc);
NCode = pMsg->Data.v;
switch(NCode)
{
case WM_NOTIFICATION_RELEASED:
switch (Id)
{
case GUI_ID_OK:
EDIT_AddKey(WM_GetDialogItem(hWin,ID_EDIT_0),'\0');
EDIT_GetText(WM_GetDialogItem(hWin,ID_EDIT_0),BVtxt_temp,sizeof(BVtxt_temp));
// strcpy(BVtxt,BVtxt_temp);
// GUI_EndDialog(hWin, 0);
break ;
}
GUI_MessageBox("Press Right Number","Warning!!",0);
break;
case GUI_ID_CANCEL:
GUI_EndDialog(hWin, 0);
break;
case GUI_ID_BUTTON0:
EDIT_AddKey(WM_GetDialogItem(hWin,ID_EDIT_0),'0');
break;
case GUI_ID_BUTTON1:
EDIT_AddKey(WM_GetDialogItem(hWin,ID_EDIT_0),'2');
break;
case GUI_ID_BUTTON2:
EDIT_AddKey(WM_GetDialogItem(hWin,ID_EDIT_0),'1');
break;
case GUI_ID_BUTTON3:
EDIT_AddKey(WM_GetDialogItem(hWin,ID_EDIT_0),'3');
break;
case GUI_ID_BUTTON4:
EDIT_AddKey(WM_GetDialogItem(hWin,ID_EDIT_0),'4');
break;
case GUI_ID_BUTTON5:
EDIT_AddKey(WM_GetDialogItem(hWin,ID_EDIT_0),'5');
break;
case GUI_ID_BUTTON6:
EDIT_AddKey(WM_GetDialogItem(hWin,ID_EDIT_0),'6');
break;
case GUI_ID_BUTTON7:
EDIT_AddKey(WM_GetDialogItem(hWin,ID_EDIT_0),'7');
break;
case GUI_ID_BUTTON8:
EDIT_AddKey(WM_GetDialogItem(hWin,ID_EDIT_0),'8');
break;
case GUI_ID_BUTTON9:
EDIT_AddKey(WM_GetDialogItem(hWin,ID_EDIT_0),'9');
break;