Hello all, I'm creating a toobar icon widget that inherits Fl_Menu_Button that includes hovering effects. For example, if the cursor is not on top of the widget, FL_FLAT_BOX is drawn instead of box(). When the cursor is on top of the widget (hovering), then its box() is drawn and the widget's color() is draw lighter. When the user press down of the widget, the down_box() is drawn using the selection_color(). I have done this successfully with Fl_Button.
My question/comment has to do when the cursor is not on top of the widget. This is when I want the widget to use the FL_FLAT_BOX. My implementation is working, but the issue has to do with Fl_Menu_Button::draw(). There is a specific case in Fl_Menu_Button::draw(), that if box() == FL_FLAT_BOX, the down arrow is not drawn. The comment for this case states: if (box() == FL_FLAT_BOX) return; // for XForms compatibility Is XForms being supported in FLTK 1.3? If not, can this line be removed? If XForms is suppose to be supported, I can live with that. I would probably have to draw the down arrow in my derived widget in this case I think. Thanks, Alvin _______________________________________________ fltk mailing list [email protected] http://lists.easysw.com/mailman/listinfo/fltk

