[solved] wxHtmlHelpController Topic is solved

If you are using the main C++ distribution of wxWidgets, Feel free to ask any question related to wxWidgets development here. This means questions regarding to C++ and wxWidgets, not compile problems.
Post Reply
Tony0945
Experienced Solver
Experienced Solver
Posts: 99
Joined: Wed Oct 21, 2009 4:02 pm

[solved] wxHtmlHelpController

Post by Tony0945 » Sun Sep 19, 2010 2:41 am

What tool, preferably free, can I use to turn an ordinary .htm file into an .htb file for use with wxHtmlController?
Last edited by Tony0945 on Mon Sep 20, 2010 12:05 am, edited 1 time in total.

jfouche
Super wx Problem Solver
Super wx Problem Solver
Posts: 442
Joined: Tue May 06, 2008 4:52 pm
Location: France

Post by jfouche » Sun Sep 19, 2010 7:53 am

Probably HTML Help Workshop is what you need.
Jérémie

User avatar
tierra
Site Admin
Site Admin
Posts: 1343
Joined: Sun Aug 29, 2004 7:14 pm
Location: Salt Lake City, Utah, USA
Contact:

Post by tierra » Sun Sep 19, 2010 7:38 pm

The HTB file format is just simply a ZIP file of all your HTML files. That's it. There's nothing more to it. It's much easier to built an HTB file than a CHM file.

Tony0945
Experienced Solver
Experienced Solver
Posts: 99
Joined: Wed Oct 21, 2009 4:02 pm

Post by Tony0945 » Mon Sep 20, 2010 12:04 am

HTML Help Workshop did indeed work for wxCHMHelpController. I would have liked to use the more sophisticated wxHTMLController but when I tried zipping up the HTML file, no data displayed in the Help Box, i.e. the box displayed but there were no contents.

For now, the .chm file built by the Microsoft Tool worked, so I can at least distribute a help file, but I think I lost cross-platform capability.

Thanks for the prompt help from all.

User avatar
evstevemd
Part Of The Furniture
Part Of The Furniture
Posts: 2293
Joined: Wed Jan 28, 2009 11:57 am
Location: United Republic of Tanzania
Contact:

Post by evstevemd » Mon Sep 20, 2010 1:23 am

Tony0945 wrote:HTML Help Workshop did indeed work for wxCHMHelpController. I would have liked to use the more sophisticated wxHTMLController but when I tried zipping up the HTML file, no data displayed in the Help Box, i.e. the box displayed but there were no contents.

For now, the .chm file built by the Microsoft Tool worked, so I can at least distribute a help file, but I think I lost cross-platform capability.

Thanks for the prompt help from all.
Create your html files and zip them (let say to help.zip) then rename it to htb extension (that is, help.htb)
There you go!
Chief Justice: We have trouble dear citizens!
Citizens: What it is his honor?
Chief Justice:Our president is an atheist, who will he swear to?
[Ubuntu 19.04/Windows 10 Pro/MacOS 10.13 - GCC/MinGW/Clang, CodeLite IDE]

recobb
Knows some wx things
Knows some wx things
Posts: 33
Joined: Sat Nov 27, 2010 1:35 am

Post by recobb » Tue Jan 04, 2011 8:42 pm

According to my notes, there is one more step you need to take when you used the zipped file approach, and that is to add a handler for the archive:

Code: Select all

 /* for zipped help file: need to #include <wx/fs_arc.h>
    and AddHandler below */
    wxFileSystem::AddHandler(new wxArchiveFSHandler);
I forget where I found that info, but the zipped file would not work for me until I added that.

Richard

Post Reply