about ISHELL_SendEvent() | developer.brewmp.com about ISHELL_SendEvent() | developer.brewmp.com

Developer

about ISHELL_SendEvent()

Forums:

Hi all:
i want to delete characters in the edit control ITEXT with IDC_CLEAR command

of SoftKeyCtl, i did it in the following way,but it didn't work.
....
case IDC_CLEAR:
ITEXTCTL_SetActive(pApp->m_pText,TRUE);
ISHELL_SendEvent( pApp->a.m_pIShell, pA pp->a.clsID, EVT_KEY, AVK_CLR, NULL );
ITEXTCTL_SetActive(pApp->m_pText, FALSE);
IMENUCTL_SetActive( pApp->m_pSK, TRUE);
return TRUE;

Instead of calling ISHELL_SendEvent(); try to call
ITEXTCTL_HandleEvent ( pITextCtl, EVT_KEY, AVK_CLR, NULL)
Hope it will work-
SoftEast

Instead of calling ISHELL_SendEvent(); try to call
ITEXTCTL_HandleEvent ( pITextCtl, EVT_KEY, AVK_CLR, NULL)
Hope it will work-
SoftEast

why you are not using the ITEXTCTL_HandleEvent , as this wil edit the characters for you on the pres of the AVK_CLR.

why you are not using the ITEXTCTL_HandleEvent , as this wil edit the characters for you on the pres of the AVK_CLR.

Thanks for ur advice, the trouble was shooted!

Thanks for ur advice, the trouble was shooted!