MacArthur, Ian (SELEX GALILEO, UK) wrote:
>
>> What I expect based on other html widgets is an event that
>> tells me that
>> a link was clicked and on this event/methos call I can:
>
> Sure: but Fl_Help_View is not really an html widget. It's a fairly
> simple help viewer with a syntax that looks suspiciously like html, but
> I don't think we can realistically expect it to be a full html widget,
> or that we should even try...
>
> So I am very reluctant to add more functionality to Fl_Help_View whilst
> there are other, bigger, issues to resolve!
>
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 ) );
_______________________________________________
fltk-dev mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-dev