> Hi, I would like to know how to change the border color of a box. > > I am using FLTK2, and I have set a window with border(false), then > box(BORDER_BOX). In FLTK1.x the default color is black, however in FLTK2 it > is grey, and I would like it black. I have searched and there seems to be no > method to cover this. Is there an easy way, or am I going to have to > re-compile FLTK2 with changing some option. > > Thanks, Owen
Yes, in fltk2 default color of border box is grey and currently there is no function to change it. On other hand, you can have your own BORDER_BOX with desired color deriving FrameBox and override _draw(). Here is doc about it: http://www.fltk.org/doc-2.0/html/classFrameBox.html or you can check how is done in UpBox.cxx or PlasticBox.cxx. -- Sanel _______________________________________________ fltk mailing list [email protected] http://lists.easysw.com/mailman/listinfo/fltk

