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

Developer

Forums

Forums:

I read in the API reference about html viewer properties:
Quote:HVP_TRANSPARENT can be used to display the viewer over any background. In this case, the viewer sends the HVN_ERASEBKGND notification so that the app can re-paint the background before it renders the HTML.

can anyone tell me how does it work??

I tried to draw the picture first and then showing the html, but it doesn't work...
I have set the properties in the InitAppData:
IHTMLVIEWER_SetProperties(pMe->pIHtml, HVP_SCROLLBAR || HVP_TRANSPARENT);
and call the function to show the html page:
void DisplayPage(benkyo* pMe, const char *pURL)
{
IFile *pf;
const char *pFileName = pURL;

IImage* pImage = NULL;
AEEImageInfo rImageInfo;

ResetControls(pMe);

pImage = ISHELL_LoadResImage( pMe->pIShell, BENKYO_RES_FILE, IDI_SPLASH );

if(pImage)
{
IDISPLAY_ClearScreen( pMe->pIDisplay);
IIMAGE_GetInfo( pImage, &rImageInfo );
IIMAGE_Draw(pImage, ((pMe->rRect.x + pMe->rRect.dx)/2) - (rImageInfo.cx/2), ((pMe->rRect.y + pMe->rRect.dy)/2) - (rImageInfo.cy/2));
IDISPLAY_Update( pMe->pIDisplay );
IIMAGE_Release( pImage );
}

IHTMLVIEWER_SetActive( pMe->pIHtml, TRUE );

if(STRBEGINS("file:",pFileName))
pFileName += STRLEN("file:");

if(STRBEGINS("///",pFileName))
pFileName += STRLEN("///");

pf = IFILEMGR_OpenFile(pMe->pFileMgr, pFileName, _OFM_READ);

if(pf) {
IHTMLVIEWER_LoadStream(pMe->pIHtml, (IAStream*)pf);
IFILE_Release(pf);
} else {
IHTMLVIEWER_SetData(pMe->pIHtml, "ErrorFile Not Found", -1);
}

can anyone help telling me what's wrong with my code??
thank you very much

I have also tried to change the html code with
but it's also not working...

I have also tried to change the html code with
but it's also not working...

can anyone help me with this???

can anyone help me with this???

I'm having the same problem. It appears to work correclty on the simulator, but doesn't work on the device (RAZR v3m). It looks like the text is being drawn without the transparency flag which results in white boxes displayed around the text and over the background image.
Have you had any luck with this?

I'm having the same problem. It appears to work correclty on the simulator, but doesn't work on the device (RAZR v3m). It looks like the text is being drawn without the transparency flag which results in white boxes displayed around the text and over the background image.
Have you had any luck with this?