DO NOT REPLY TO THIS MESSAGE. INSTEAD, POST ANY RESPONSES TO THE LINK BELOW.
[STR New] Link: http://www.fltk.org/str.php?L2337 Version: 1.3-feature Today I'm converting one application to FLTK and found that Fl_Help_View doesn't call Fl_Help_View::link when user click's on a link, although the FLTK manual says that it does. I added this code to it temporary to make it works: void Fl_Help_View::follow_link( Fl_Help_Link *linkp ) { char target[32]; // Current target clear_selection(); //new code begin if( link_ ) { if(!(*link_)(this, linkp->name)) return; } //new code end strlcpy( target, linkp->name, sizeof( target ) ); What I expect based on other html widgets is an event that tells me that a link was clicked and on this event/method call I can: 1- Know what link/anchor was clicked. 2- I can choose to let the html widget perform it's default link click handling or I can do something different and abort it's default. On the application I'm converting right now I use link/anchors to allow user choose some actions that doesn't imply load a new document, like mark a record for special purposes, open a new window with a detailed view of the selection/link/anchor, open a popup for options, ... And only telling us that a user clicked on loading a new document isn't enough. Link: http://www.fltk.org/str.php?L2337 Version: 1.3-feature _______________________________________________ fltk-dev mailing list [email protected] http://lists.easysw.com/mailman/listinfo/fltk-dev
