I'm trying to derive a rollover-type widget from FLTK's box widget. I'd like my 
widget label to display only when the mouse is over the box. I'm doing it all 
in Fluid by defining my own class called 'mw_Rollover_Box'.  It's almost 
working. The label appears and disappears when I want it to.  BUT, all of my 
keyboard shortcuts are disabled.  There's something basic about 'labeltype' or 
'handle' that I don't understand.  My code (very simple) is below. Anyone have 
a suggestion?  Thanks.


int ret = Fl_Box::handle(e);

switch (e) {
    case FL_ENTER: labeltype (FL_NORMAL_LABEL);  break;
    case FL_LEAVE: labeltype (FL_NO_LABEL    );  break;
}

ret = 1;
window()->redraw();

return(ret);
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk

Reply via email to