mirror of
https://github.com/fltk/fltk.git
synced 2026-06-02 15:46:52 +08:00
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:
@@ -1,5 +1,10 @@
|
|||||||
CHANGES IN FLTK 1.1.4
|
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
|
- Updated the default background color on OSX to provide
|
||||||
better contrast.
|
better contrast.
|
||||||
- Fl_Text_Display and friends now look for the next
|
- Fl_Text_Display and friends now look for the next
|
||||||
|
|||||||
+3
-3
@@ -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).
|
// 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;
|
int selected = 0;
|
||||||
Fl_Widget*const* a = array();
|
Fl_Widget*const* a = array();
|
||||||
int i;
|
int i;
|
||||||
p[0] = 0;
|
p[0] = Fl::box_dx(box());
|
||||||
for (i=0; i<children(); i++) {
|
for (i=0; i<children(); i++) {
|
||||||
Fl_Widget* o = *a++;
|
Fl_Widget* o = *a++;
|
||||||
if (o->visible()) selected = i;
|
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 $".
|
||||||
//
|
//
|
||||||
|
|||||||
+7
-7
@@ -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).
|
// "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) {
|
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);
|
shade_frame(x, y, w, h - 1, "KLDIIJLM", c);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
static void up_box(int x, int y, int w, int h, Fl_Color 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, "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);
|
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 $".
|
||||||
//
|
//
|
||||||
|
|||||||
Reference in New Issue
Block a user