Stuart Shepherd schrieb:
> I would like to be able to open external web pages in the machines
> default web browser from within an fltk app. Is this possible? I've
> googled a lot but can't find anything. Thanks for any help you may be
> able to offer.
For things like that FLTK provides uri-functions (wikipedia provides
detailed infos about uri-functions).
#include <FL/filename.H> // fl_open_uri
bool Call_HTML(string File, string Dir)
{ // Dir must finish with a slash, or is empty
// when File contains the path
char Msg[128];
File= "file://" + Dir + File;
int Ret= fl_open_uri(File.c_str(), &Msg[0], 127);
return Ret== 1 || strncmp(&Msg[0], "waitpid", 7)== 0;
}
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk