Forums | developer.brewmp.com Forums | developer.brewmp.com

Developer

Forums

Forums:

Hi all,

I want to create an input box using htmlviewer. I dont know where i am doing mistake. Please correct my piece of code.

I cant able to see the data which i entered in the input box.

Here is the code.

To create HTML page i am using this code.

char* szHtmlData = NULL;
int nLen = 0;
int nTitleFontHeight, nSKFontHeight;
AEERect rc;
IDISPLAY_ClearScreen(pMe->a.m_pIDisplay);
if(bFirstTime == TRUE)
{
if(SUCCESS == ISHELL_CreateInstance ( pMe->a.m_pIShell, AEECLSID_HTML, (void**)&pMe->pIHTMLViewer))
{
nTitleFontHeight = IDISPLAY_GetFontMetrics(pMe->a.m_pIDisplay, TITLE_FONT, NULL, NULL);
nSKFontHeight = IDISPLAY_GetFontMetrics(pMe->a.m_pIDisplay, SOFTKEY_FONT, NULL, NULL);
SETAEERECT(&rc, 0, nTitleFontHeight + 5, pMe->DeviceInfo.cxScreen,
pMe->DeviceInfo.cyScreen - nSKFontHeight - (nTitleFontHeight + 5));
IHTMLVIEWER_SetRect (pMe->pIHTMLViewer, &rc );
IHTMLVIEWER_SetActive(pMe->pIHTMLViewer, TRUE);
nLen = SNPRINTF(NULL,0,"Enter Search String:
","",pMe->DeviceInfo.cxScreen);
szHtmlData = MALLOC(nLen);
SNPRINTF(szHtmlData,nLen,"Enter Search String:
","",pMe->DeviceInfo.cxScreen);
IHTMLVIEWER_SetData ( pMe->pIHTMLViewer, szHtmlData, -1 );
FREEIF(szHtmlData);
}
}

Later when i select the input box. I can able to enter the text. But where can i catch the complete input after hitting done button.

Please provide some idea. Or if there is any sample plz share it.