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

Developer

Forums

Forums:

Hi,

I am encountering a problem with setting the HVP_INLINE_EDIT property of IHTMLViewer. I am using BREW 1.1 and have a view to render a HTML form two text boxes.

The form renders perfectly, but the HVP_INLINE_EDIT doesn’t work at all, neither on the phones or the Brew 1.1 emulator. Even after setting the HVP_INLINE_EDIT both the text boxes remain not to be inline, and curiously the border around the selected text box disappears if the property is set. The code works perfectly with the BREW 2.1 emulator i.e. the text boxes do become inline.

The Code snippet is:

HTMLView * pHTMLView = (HTMLView *)pSubView[i];

if(ISHELL_CreateInstance(pController->m_pIShell, AEECLSID_HTML, (void**)&_pIHtmlViewer[j]) != SUCCESS)
{
DeInitialize();
return FALSE;

IHtmlViewer * pIHtmlViewer = _pIHtmlViewer[j];
j++;

_pSubViews[i] = pIHtmlViewer;

rc.x++;
rc.y++;
rc.dx -= 2;
rc.dy -= 2;

IHTMLVIEWER_SetNotifyFn(pIHtmlViewer, (PFNHVIEWNOTIFY)Controller::HandleHTMLViewEvent, pController);

IHTMLVIEWER_SetRect(pIHtmlViewer, &rc);
IHTMLVIEWER_SetSBWidth(pIHtmlViewer, 4);
IHTMLVIEWER_SetVSpace(pIHtmlViewer, 1);

IHTMLVIEWER_SetProperties(pIHtmlViewer, HVP_INLINE_EDIT | HVP_SCROLLBAR);

IHTMLVIEWER_ParseBuffer(pIHtmlViewer, pHTMLView->_pContent);

Even using HVP_INLINE_EDIT without HVP_SCROLLBAR is not achieving the desired result of having inline capability.

Thanks & Regards