On 8/10/11 1:51 AM, Stuart Shepherd wrote:
> do you know if it is possible to have some clickable text
> as part of a label and when you click it
Yes, if the "label" is instead a sufficiently disguised
Fl_Help_View (or similar), then it will work in 1.3.0, eg:
#include <FL/Fl.H>
#include <FL/Fl_Window.H>
#include <FL/Fl_Help_View.H>
int main() {
Fl_Window win(300,200);
win.color(0xbbbbbb00);
Fl_Help_View html(10,10,300-20,25);
html.value("<BODY BGCOLOR=#bbbbbb>"
"This is a link to <a href='http://google.com'>google</a>.");
html.box(FL_FLAT_BOX); // hide box around help widget
html.Fl_Group::child(0)->hide(); // XXX: hide scrollbar
win.end();
win.show();
return(Fl::run());
}
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk