On 08.05.2008, at 15:53, Pascual wrote:
> I am programming a small application with fltk and I need to open a  
> file when the help button is clicked, as in all the programs in the  
> world, but I don't know which code must I put to open a file.


You could create a new Fl_Help_Dialog and load the file from there,  
for example:

Fl_Help_Dialog *dlg = new Fl_Help_Dialog(300, 500);
dlg->load("my/help/ile.html");
dlg->show();

... and return to the main application. The user can now close the  
help dialog wheever h wishes.

Matthias

----
http://robowerk.com/


_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk

Reply via email to