diff options
| author | Michael R Sweet <michael.r.sweet@gmail.com> | 2003-05-16 18:33:03 +0000 |
|---|---|---|
| committer | Michael R Sweet <michael.r.sweet@gmail.com> | 2003-05-16 18:33:03 +0000 |
| commit | dece8522f0dd67fb343df472a39a222b265e65f2 (patch) | |
| tree | dc1b5eb8730e98ceac11bbe8413f3b2a03adaa39 /src | |
| parent | 4d705c92a85ce5704ee499d82abed3f07c7b35f7 (diff) | |
Tweek tabs widget and plastic boxtype.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2979 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src')
| -rw-r--r-- | src/Fl_Tabs.cxx | 6 | ||||
| -rw-r--r-- | src/fl_plastic.cxx | 14 |
2 files changed, 10 insertions, 10 deletions
diff --git a/src/Fl_Tabs.cxx b/src/Fl_Tabs.cxx index 8c2c7d995..a8abbc147 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.17 2003/01/30 21:42:46 easysw Exp $" +// "$Id: Fl_Tabs.cxx,v 1.6.2.10.2.18 2003/05/16 18:33:03 easysw Exp $" // // Tab widget for the Fast Light Tool Kit (FLTK). // @@ -47,7 +47,7 @@ int Fl_Tabs::tab_positions(int* p, int* wp) { int selected = 0; Fl_Widget*const* a = array(); int i; - p[0] = 0; + p[0] = Fl::box_dx(box()); for (i=0; i<children(); i++) { Fl_Widget* o = *a++; if (o->visible()) selected = i; @@ -302,5 +302,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.17 2003/01/30 21:42:46 easysw Exp $". +// End of "$Id: Fl_Tabs.cxx,v 1.6.2.10.2.18 2003/05/16 18:33:03 easysw Exp $". // diff --git a/src/fl_plastic.cxx b/src/fl_plastic.cxx index 05be470a3..e8565a829 100644 --- a/src/fl_plastic.cxx +++ b/src/fl_plastic.cxx @@ -1,5 +1,5 @@ // -// "$Id: fl_plastic.cxx,v 1.1.2.16 2003/01/30 21:44:00 easysw Exp $" +// "$Id: fl_plastic.cxx,v 1.1.2.17 2003/05/16 18:33:03 easysw Exp $" // // "Plastic" drawing routines for the Fast Light Tool Kit (FLTK). // @@ -136,18 +136,18 @@ static void shade_rect(int x, int y, int w, int h, const char *c, Fl_Color bc) static void up_frame(int x, int y, int w, int h, Fl_Color c) { -// shade_frame(x, y, w, h - 1, "MNFKKLNO", c); shade_frame(x, y, w, h - 1, "KLDIIJLM", c); } static void up_box(int x, int y, int w, int h, Fl_Color c) { -// shade_rect(x + 2, y + 2, w - 4, h - 5, "TXSPPQQRSSTTUVS", c); +#if 0 // OLD UP BOX shade_rect(x + 2, y + 2, w - 4, h - 5, "RVQNOPQRSTUVWVQ", c); -// shade_rect(x + 2, y + 2, w - 4, h - 5, "RTVUTSRSTUWWXWQ", c); -// shade_rect(x + 2, y + 2, w - 4, h - 5, "RVQNNOOPQQRRSTQ", c); - up_frame(x, y, w, h, c); +#else // NEW UP BOX + shade_rect(x + 1, y + 1, w - 2, h - 3, "RVQNOPQRSTUVWVQ", c); + shade_frame(x, y, w, h - 1, "IJLM", c); +#endif // 0 } @@ -177,5 +177,5 @@ Fl_Boxtype fl_define_FL_PLASTIC_UP_BOX() { // -// End of "$Id: fl_plastic.cxx,v 1.1.2.16 2003/01/30 21:44:00 easysw Exp $". +// End of "$Id: fl_plastic.cxx,v 1.1.2.17 2003/05/16 18:33:03 easysw Exp $". // |
