--
To unsubscribe, send email to wx-dev+un...@googlegroups.com
or visit http://groups.google.com/group/wx-dev
Hi Stefano,This has come up a few times on the list, take a look at [1] where there is a list of steps that need to be undertaken. I am sure there were some other threads as well but I can't find them at the moment. Once there is a new base class that you can derive the existing wxHtmlHelpWindow and the new wxWebViewHelpWindow from it should be reasonably straightforward.
Hope that helps, please let me know if you have any questions,
Best regards,
Stefano
Steven
wxHtmlHelpHtmlWindow display menus ugly and I wanted to check how much effort is needed to change it to wxWebview and if I can do it myself.
Looking at wxHtmlHelpHtmlWindow class it inherits wxHtmlWindow and have few methods that can be somehow changed to use wxWebView.
Is that all that I need to do? I can't believe its that simple. The file I was looking at is wx/src/html/helpwind.cpp
On 22 Jun 2013 17:01, "Stefano Mtangoo" <mwinj...@gmail.com> wrote:
> I found this line problematic since it cannot remain the same in base class.
> Should I declare it a pointer to void and do type casting in respective imprementation or is ther better alternative?
> The Line is:
>
> protected:
> wxHtmlWindow *m_HtmlWin;
> I want to change it to
>
> protected:
> void *m_HtmlWin;
>>
>>
>> If I'm missing anything, what is it?
I think you should only have these details in the derived classes, then it wouldn't matter about the differences.
Steven
I have done major works changing internal classes and adding other classes.
Tested samples/help and works with wxHtmlWindow kind of help but I have few questions:
1. What are other classes need to change to make the change complete? All I have done is changes in helpwnd and helpctrl only (cpp/h)
2. I cannot load the URLs of zip file in wxWebview. I tried to add linese below but did not help
wxFileSystem::AddHandler(new wxArchiveFSHandler);
wxFileSystem::AddHandler(new wxMemoryFSHandler);
then
m_htmlWindow->RegisterHandler(wxSharedPtr<wxWebViewHandler>(new wxWebViewArchiveHandler("zip")));
m_htmlWindow->RegisterHandler(wxSharedPtr<wxWebViewHandler>(new wxWebViewFSHandler("memory")));
Thanks again,
Steven
file:///C:/example/docs.zip;protocol=zip/directory/subdir/file.htm
Anyone who knows help file url format (looks like file:/home/stefano/zipfile.zip#zip:dir/subdir/file.html)
Is there a documentation of the two formats?
Steven
Unable to load page
Problem occurred while loading the URL file:///home/stefano/wxwidgets2/samples/help/doc.zip;protocol=zip/thedir/introduction.html
Error opening file: No such file or directory
Steven