diff options
| author | Michael R Sweet <michael.r.sweet@gmail.com> | 2002-10-22 17:39:12 +0000 |
|---|---|---|
| committer | Michael R Sweet <michael.r.sweet@gmail.com> | 2002-10-22 17:39:12 +0000 |
| commit | 4c0903ad50ce85046ce25851ae1855f0c59accd1 (patch) | |
| tree | 2e1d96266cb6885e8dc51178d074e5f3752018e4 /src/Fl_Tabs.cxx | |
| parent | 3939b6cde594089636fa7e33120d65f47f9096f0 (diff) | |
WIN32 redraw fixes.
Fl_Tabs now uses FL_DAMAGE_SCROLL for damage to
the tabs themselves.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2683 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/Fl_Tabs.cxx')
| -rw-r--r-- | src/Fl_Tabs.cxx | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/src/Fl_Tabs.cxx b/src/Fl_Tabs.cxx index 51adcb1be..7599c8019 100644 --- a/src/Fl_Tabs.cxx +++ b/src/Fl_Tabs.cxx @@ -1,5 +1,5 @@ // -// "$Id: Fl_Tabs.cxx,v 1.6.2.10.2.13 2002/09/09 02:04:46 spitzak Exp $" +// "$Id: Fl_Tabs.cxx,v 1.6.2.10.2.14 2002/10/22 17:39:12 easysw Exp $" // // Tab widget for the Fast Light Tool Kit (FLTK). // @@ -126,9 +126,9 @@ int Fl_Tabs::handle(int event) { case FL_PUSH: { int H = tab_height(); if (H >= 0) { - if (Fl::event_y() > y()+H) goto DEFAULT; + if (Fl::event_y() > y()+H) return Fl_Group::handle(event); } else { - if (Fl::event_y() < y()+h()+H) goto DEFAULT; + if (Fl::event_y() < y()+h()+H) return Fl_Group::handle(event); }} if (Fl::visible_focus()) Fl::focus(this); case FL_DRAG: @@ -143,10 +143,10 @@ int Fl_Tabs::handle(int event) { int H = tab_height(); if (H >= 0) { H += Fl::box_dy(box()); - damage(FL_DAMAGE_EXPOSE, x(), y(), w(), H); + damage(FL_DAMAGE_SCROLL, x(), y(), w(), H); } else { H = Fl::box_dy(box()) - H; - damage(FL_DAMAGE_EXPOSE, x(), y() + h() - H, w(), H); + damage(FL_DAMAGE_SCROLL, x(), y() + h() - H, w(), H); } return 1; } else return 0; @@ -173,7 +173,6 @@ int Fl_Tabs::handle(int event) { break; } default: - DEFAULT: return Fl_Group::handle(event); } @@ -182,7 +181,7 @@ int Fl_Tabs::handle(int event) { int Fl_Tabs::push(Fl_Widget *o) { if (push_ == o) return 0; if (push_ && !push_->visible() || o && !o->visible()) - damage(FL_DAMAGE_EXPOSE); + redraw(); push_ = o; return 1; } @@ -232,7 +231,7 @@ void Fl_Tabs::draw() { } else { // redraw the child if (v) update_child(*v); } - if (damage() & (FL_DAMAGE_EXPOSE|FL_DAMAGE_ALL)) { + if (damage() & (FL_DAMAGE_SCROLL|FL_DAMAGE_ALL)) { int p[128]; int wp[128]; int selected = tab_positions(p,wp); int i; @@ -300,5 +299,5 @@ Fl_Tabs::Fl_Tabs(int X,int Y,int W, int H, const char *l) : } // -// End of "$Id: Fl_Tabs.cxx,v 1.6.2.10.2.13 2002/09/09 02:04:46 spitzak Exp $". +// End of "$Id: Fl_Tabs.cxx,v 1.6.2.10.2.14 2002/10/22 17:39:12 easysw Exp $". // |
