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:
parent
49791adf78
commit
a82e7879ce
@ -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
|
||||
|
@ -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$".
|
||||
|
Loading…
Reference in New Issue
Block a user