Tweek tabs widget and plastic boxtype.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2979 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
Michael R Sweet 2003-05-16 18:33:03 +00:00
parent 4d705c92a8
commit dece8522f0
3 changed files with 15 additions and 10 deletions

View File

@ -1,5 +1,10 @@
CHANGES IN FLTK 1.1.4
- Updated the Fl_Tabs widget to offset the first tab by
the box dx value to avoid visual errors.
- Updated the plastic up box to draw only a single
border frame instead of the old double one for
improved appearance.
- Updated the default background color on OSX to provide
better contrast.
- Fl_Text_Display and friends now look for the next

View File

@ -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 $".
//

View File

@ -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 $".
//