AnsweredAssumed Answered

stemwin edit click acknowledge?

Question asked by sha.him on Jul 6, 2017
Latest reply on Jul 24, 2017 by Vangelis Fortounas

hi,

I am trying to create window menu as per below code that got 4-5 edit text box in it.

Issue is how to get acknowledgement of clicked edit text box



void vCreateNewTestWindow(void){

GUI_RECT rect;
int16_t yPos;
LCD_Clear(LCD_COLOR_WHITE);
GUI_SetTextMode(GUI_TM_TRANS);
GUI_DrawBitmap(&bmnew_test, 5, 150);
GUI_SetColor (GUI_GRAY);
GUI_SetFont (&GUI_FontArial32);
GUI_SetTextMode (GUI_TM_TRANS);
GUI_DispStringAt ("Text1" , 250, 200    );
GUI_DispStringAt ("Text2" , 250, 200+50 );
GUI_DispStringAt ("Text3" , 250, 200+100);
GUI_DispStringAt ("Text4" , 250, 200+150);
GUI_DispStringAt ("Text5" , 250, 200+200);
yPos  = 200;
for (lp=0; lp<5; lp++) {
  hWin = EDIT_CreateEx (550, yPos, 300, 30, WM_HBKWIN, WM_CF_SHOW , 0, GUI_ID_TEXT0, 25);
  EDIT_SetFont (hWin, &GUI_FontArial24);
  EDIT_SetTextColor (hWin, EDIT_CI_ENABLED , GUI_AIMIL_HARD);
  EDIT_SetText (hWin, _aBitmapItemSetup[lp].pText);
  yPos = yPos + 50;
}
WM_SetFocus (hWin);
WM_DisableMemdev(WM_HBKWIN);  /* Handle of background window */
GUI_Exec();
while (1){
  GUI_Delay(100);
}

}

Outcomes