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
This commit is contained in:
parent
abdd8a1e23
commit
cd914369a6
@ -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 $".
|
||||
//
|
||||
|
Loading…
Reference in New Issue
Block a user