Actually down (unless at the beginning of the table) is always odd - next or the same if it is detected as down (odd).
You can set your pair like: Fl_Boxtype MY_DOWN_BOX = fl_down(FL_FREE_BOXTYPE+1); Fl_Byxtype MY_UP_BOX = Fl_Boxtype(my_down_box-1); Fl::set_boxtype(MY_UP_BOX, &my_up_box_function, ...); Fl::set_boxtype(MY_DOWN_BOX, &my_down_box_function, ...); R. Alvin wrote: > When creating a custom Fl_Boxtype, what is the procedure for associating a > down_box version to the custom Fl_Boxtype? > > I've looked at the source of fl_down() in Enumerations.H and it appears > that, if the argument is even, fl_down() returns the next boxtype in the > enumeration. Otherwise, the argument is returned. > > So, what adding custom boxtypes (via Fl::set_boxtype), should they be added > in Upbox-Downbox pairs? > _______________________________________________ fltk mailing list [email protected] http://lists.easysw.com/mailman/listinfo/fltk

