STR #1232: it was not possible to toggle a checkbox in Fl_Check_Browser by clicking the same box twice.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5006 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
Matthias Melcher 2006-04-20 03:53:41 +00:00
parent 49791adf78
commit a82e7879ce
2 changed files with 9 additions and 0 deletions

View File

@ -88,6 +88,10 @@ class FL_EXPORT Fl_Check_Browser : public Fl_Browser_ {
void check_none();
int value() const; // currently selected item
char *text(int item) const; // returns pointer to internal buffer
protected:
int handle(int);
};
#endif // Fl_Check_Browser_H

View File

@ -266,6 +266,11 @@ void Fl_Check_Browser::check_none() {
redraw();
}
int Fl_Check_Browser::handle(int event) {
if (event==FL_PUSH)
deselect();
return Fl_Browser_::handle(event);
}
//
// End of "$Id$".