From cd914369a657d7806dfd86b1fe7e3535f43d779b Mon Sep 17 00:00:00 2001 From: Bill Spitzak Date: Mon, 17 Apr 2000 07:42:01 +0000 Subject: [PATCH] Setting box(FL_NO_BOX) on a button makes it an invisible overlay git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1075 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- src/Fl_Button.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Fl_Button.cxx b/src/Fl_Button.cxx index 888ee7fbd..1b7b10fe6 100644 --- a/src/Fl_Button.cxx +++ b/src/Fl_Button.cxx @@ -1,5 +1,5 @@ // -// "$Id: Fl_Button.cxx,v 1.4.2.1 2000/03/02 19:10:49 mike Exp $" +// "$Id: Fl_Button.cxx,v 1.4.2.2 2000/04/17 07:42:01 bill Exp $" // // Button widget for the Fast Light Tool Kit (FLTK). // @@ -50,7 +50,7 @@ void Fl_Button::setonly() { // set this radio button on, turn others off } void Fl_Button::draw() { - if (type() == FL_HIDDEN_BUTTON) return; + if (type() == FL_HIDDEN_BUTTON || box() == FL_NO_BOX) return; Fl_Color col = value() ? selection_color() : color(); //if (col == FL_GRAY && Fl::belowmouse()==this) col = FL_LIGHT1; draw_box(value() ? (down_box()?down_box():down(box())) : box(), col); @@ -118,5 +118,5 @@ Fl_Button::Fl_Button(int x,int y,int w,int h, const char *l) } // -// End of "$Id: Fl_Button.cxx,v 1.4.2.1 2000/03/02 19:10:49 mike Exp $". +// End of "$Id: Fl_Button.cxx,v 1.4.2.2 2000/04/17 07:42:01 bill Exp $". //