ITEXTCTL can not work on real device! | developer.brewmp.com ITEXTCTL can not work on real device! | developer.brewmp.com

Developer

ITEXTCTL can not work on real device!

Forums:

Hi guys,

A ITEXTCTL is created in my application. My application runs well on BREW emulator. As soon as it runs on QCP3035, the ITEXTCTL is not able to receive the key event which happens when users press the key.
What can I do to make it good?
Additionally, some softkeys have some questions too.

Who can help me?
;)

Thanks in advance.

After you enter text in memoapp, you will find entering title is impossible on QCP3035.
Did I made mistakes on using ITextCTL ?
ITEXTCTL_SetTitle(pMe->m_pIText, PHONEBOOK_RES_FILE, IDS_NAME, NULL);
ITEXTCTL_SetMaxSize(pMe->m_pIText, MAXNAME);
ITEXTCTL_SetInputMode(pMe->m_pIText , AEE_TM_RAPID);
ITEXTCTL_SetProperties(pMe->m_pIText, TP_FRAME | TP_MULTILINE);
ITEXTCTL_SetRect(pMe->m_pIText, &rect);
ITEXTCTL_SetActive (pMe->m_pIText, TRUE);
Any question?

After you enter text in memoapp, you will find entering title is impossible on QCP3035.
Did I made mistakes on using ITextCTL ?
ITEXTCTL_SetTitle(pMe->m_pIText, PHONEBOOK_RES_FILE, IDS_NAME, NULL);
ITEXTCTL_SetMaxSize(pMe->m_pIText, MAXNAME);
ITEXTCTL_SetInputMode(pMe->m_pIText , AEE_TM_RAPID);
ITEXTCTL_SetProperties(pMe->m_pIText, TP_FRAME | TP_MULTILINE);
ITEXTCTL_SetRect(pMe->m_pIText, &rect);
ITEXTCTL_SetActive (pMe->m_pIText, TRUE);
Any question?

You should process text control events...
So, you should add this code into your event handler function's switch statement:
switch(event)
{
.....
.....
case EVT_KEY:
if(ITEXTCTL_IsActive(pMe->m_pIText) && ITEXTCTL_HandleEvent(pMe->m_pIText, event, wParam, dwParam))
{
return TRUE;
}
break;

You should process text control events...
So, you should add this code into your event handler function's switch statement:
switch(event)
{
.....
.....
case EVT_KEY:
if(ITEXTCTL_IsActive(pMe->m_pIText) && ITEXTCTL_HandleEvent(pMe->m_pIText, event, wParam, dwParam))
{
return TRUE;
}
break;

My app run very well on emulator. Of course those code appear in my program.
Thank you!
Any one has this experience?:)

My app run very well on emulator. Of course those code appear in my program.
Thank you!
Any one has this experience?:)

My app run well on Sharp z-800. The TEXTCTL also is OK.
What is the difference between QCP3035 and Sharp z-800?

My app run well on Sharp z-800. The TEXTCTL also is OK.
What is the difference between QCP3035 and Sharp z-800?

Hi,
Plz. make sure that you are passing the dwParam as well to ITEXTCTL_HandleEvent. That is required on QCP3035 handsets.
Because mostly in emulator it works fine
ITEXTCTL_HandleEvent(pMe->m_pIText, event, wParam, 0)
if this is the case with your code then replace that with.
ITEXTCTL_HandleEvent(pMe->m_pIText, event, wParam, dwParam)
Hope it helps.
Regards,
Ali Naqvi

Hi,
Plz. make sure that you are passing the dwParam as well to ITEXTCTL_HandleEvent. That is required on QCP3035 handsets.
Because mostly in emulator it works fine
ITEXTCTL_HandleEvent(pMe->m_pIText, event, wParam, 0)
if this is the case with your code then replace that with.
ITEXTCTL_HandleEvent(pMe->m_pIText, event, wParam, dwParam)
Hope it helps.
Regards,
Ali Naqvi

You are right.
Thank you very much!

You are right.
Thank you very much!