DO NOT REPLY TO THIS MESSAGE.  INSTEAD, POST ANY RESPONSES TO THE LINK BELOW.

[STR New]

Link: http://www.fltk.org/str.php?L2145
Version: 1.3-current


Attached foo.cxx program shows the focus box is drawing its corners outside
of the widget, living 'digital drit' behind on the window background.

Probably the focus_box code needs to bring in the left and right edges a
bit if the box() type is either of these:

     FL_ROUND_UP_BOX
     FL_ROUND_DOWN_BOX

Those seem to be the only rounded boxes that have UP/DOWN versions
affected by this problem, as only box types with an up/down option make
them useful for buttons, and thus susceptible to focus boxes.

I think FLTK uses an internal array to account for box border widths;
maybe a similar technique can be used to recommend focus box sizing..?


Link: http://www.fltk.org/str.php?L2145
Version: 1.3-current
#include <FL/Fl.H>
#include <FL/Fl_Window.H>
#include <FL/Fl_Button.H>
int main() {
  Fl::scheme("gtk+");
  Fl_Window *win = new Fl_Window(200,200);
  Fl_Button *but = new Fl_Button(10,10,120,25,"Cmd");
  but->labelsize(12);
  but->box(FL_ROUND_UP_BOX);
  but->down_box(FL_ROUND_DOWN_BOX);
  win->end();
  win->show();
  return(Fl::run());
}
_______________________________________________
fltk-bugs mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-bugs

Reply via email to