summaryrefslogtreecommitdiff
path: root/src/Fl_Button.cxx
diff options
context:
space:
mode:
authorBill Spitzak <spitzak@gmail.com>2000-04-17 07:42:01 +0000
committerBill Spitzak <spitzak@gmail.com>2000-04-17 07:42:01 +0000
commitcd914369a657d7806dfd86b1fe7e3535f43d779b (patch)
treea23b48ffb714f93c775df02ffff53fdbb9378b10 /src/Fl_Button.cxx
parentabdd8a1e232acf34183a715198283b12fc088640 (diff)
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
Diffstat (limited to 'src/Fl_Button.cxx')
-rw-r--r--src/Fl_Button.cxx6
1 files 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 $".
//