Hide and show overlapping buttons as needed for widgets and windows.

(otherwise keyboard nav goes to "hidden" buttons...


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1552 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
Michael R Sweet 2001-08-04 16:56:02 +00:00
parent 11cc024107
commit 2636d6fcd2
1 changed files with 6 additions and 2 deletions

View File

@ -1,5 +1,5 @@
//
// "$Id: Fl_Widget_Type.cxx,v 1.15.2.16 2001/01/22 15:13:38 easysw Exp $"
// "$Id: Fl_Widget_Type.cxx,v 1.15.2.16.2.1 2001/08/04 16:56:02 easysw Exp $"
//
// Widget type code for the Fast Light Tool Kit (FLTK).
//
@ -542,6 +542,8 @@ void hotspot_cb(Fl_Light_Button* i,void* v) {
void visible_cb(Fl_Light_Button* i, void* v) {
if (v == LOAD) {
i->value(current_widget->o->visible());
if (current_widget->is_window()) i->hide();
else i->show();
} else {
int n = i->value();
for (Fl_Type *o = Fl_Type::first; o; o = o->next)
@ -556,6 +558,8 @@ void visible_cb(Fl_Light_Button* i, void* v) {
void active_cb(Fl_Light_Button* i, void* v) {
if (v == LOAD) {
i->value(current_widget->o->active());
if (current_widget->is_window()) i->hide();
else i->show();
} else {
int n = i->value();
for (Fl_Type *o = Fl_Type::first; o; o = o->next)
@ -1766,5 +1770,5 @@ int Fl_Widget_Type::read_fdesign(const char* name, const char* value) {
}
//
// End of "$Id: Fl_Widget_Type.cxx,v 1.15.2.16 2001/01/22 15:13:38 easysw Exp $".
// End of "$Id: Fl_Widget_Type.cxx,v 1.15.2.16.2.1 2001/08/04 16:56:02 easysw Exp $".
//