a question on wxHtmlWindow

BruceKL WhoH wrote:

I try to use wxHtmlWindow in my app.
I want to pack a .html file and associated files which are used by the html file,such as .jpg and .js to a zip file or some other formats. And then ,when the html page is needed, I read all these files to memory,and use wxHtmlWindow to show the page.But it seems that wxHtmlWindow can only show the html without the associated files(such as a .jpg in the page).
I know that all files are in the memory,and the links, such as img src="./123.jpg", are meaningless,how to display the complete page?

You could load them all into the wxMemoryFileSystem and then the
relative links would work. Or just leave the files in the zip and have wxHtmlWindow use the wxZipFSHandler to access them simply by specifying something like "zip://filename.zip/index.html" as the starting link. (From memory, some details may be different...)

ยทยทยท

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!