On 08/01/11 15:46, Andrew Waldrum wrote:
> I am trying to add an help/instruction widget to my application and am
> having some trouble with the Fl_Help_View
> <http://www.fltk.org/doc-1.3/classFl__Help__View.html> in 1.3.
> It renders my page, kind of, but hotlinks do not work and images(neither
> png nor gif) show up.
> All I really need is basic formating, links, and images of some kind.
> According to the online documentation FL_Help_View supports "Most HTML
> 2.0", including png and gif image formats.
> I am using the latest Ubuntu 10.04 with either Gnome or E16 window
> manager.
By hotlinks, do you mean http:// links? If so, Fl_Help_View
only supports online documentation internally (eg. file:// urls),
and IIRC any http:// style links call call fl_open_uri() to resolve,
which under linux currently tries to fork() off one of these
commands to handle web browsing (I believe in this order):
"xdg-open", // Portland
"htmlview", // Freedesktop.org
"firefox",
"mozilla",
"netscape",
"konqueror", // KDE
"opera",
"hotjava", // Solaris
"mosaic",
So long story short, you'll need one of those installed
on your OS to have it resolve http: style links.
Or, I imagine you can hack the src/fl_open_uri.cxx file to
include other options.
> Unfortunately the target system is stripped down so having a
> browser external to the application is probably not an option.
> Any ideas?
I don't think there's a solution unless you change
the code.
Perhaps you can hack Fl_Help_View to fire off curl(1)
or GET(1) or one of those web retrieval tools, so that
the URL first pulls the file local, then opens it in
Fl_Help_View either as an in memory string, or a temp
file on disk.
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk