On 09.04.2010, at 12:21, Domingo Alvarez Duarte wrote:

> It's one point of view, but if someone else need something like what I 
> described, I thought it a bit better and my modification is now like this:
> 
> void Fl_Help_View::follow_link( Fl_Help_Link *linkp ) {
>       char            target[32];     // Current target
> 
>       const char *vlink_name;
> 
>       clear_selection();
> 
>       if( link_ ) {
>               vlink_name = (*link_)(this, linkp->name);
>               if(!vlink_name) return;
>       } else {
>               vlink_name = linkp->name;
>       }
> 
>       strlcpy( target, vlink_name, sizeof( target ) );

I use the link function all the time to launch scripts and start actions in my 
application, right from the documentation viewer. 

What exactly does you implementation do that I can't do with what's there 
already?
_______________________________________________
fltk-dev mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-dev

Reply via email to