Thanks. It works.

1. so it means we can not give link in Fl_Browser ?
2. what if we want to give a link to a menu ?
just click on the about menu and that directs to IExplorer.
3. can we give link to a button? click on the button and it directs to site ?










> On 07/13/12 13:41, Furqan wrote:
> > I want to create a hyperlink of my website link in my "about" window which 
> > is created by fl_double_window. how can I do that ?
> >
> > Info->add("@C1 ----------------------------------------- ");
> > Info->add("  http://www.real3d.pk";);
> > Info->add("@C1 ----------------------------------------- ");
>
>       Use Fl_Help_View with your URL.
>
>       When I run this on fltk 1.3.x and click the link,
>       my web browser opens to the page.
>
> #include <FL/Fl.H>
> #include <FL/Fl_Window.H>
> #include <FL/Fl_Help_Dialog.H>
> int main(int argc, char *argv[]) {
>   Fl_Window *aboutwin = new Fl_Window(400,400,"About: My App");
>   aboutwin->begin();
>     Fl_Help_View *about = new Fl_Help_View(10,10,400-20,400-20);
>     about->value("All about my program."
>                  "<P>"
>                  "The website is: <A 
> HREF='http://google.com/'>http://www.google.com/</A>"
>                  "<P>"
>                  "More info here.");
>   aboutwin->end();
>   aboutwin->show();
>   return(Fl::run());
> }

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

Reply via email to