summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorAlbrecht Schlosser <albrechts.fltk@online.de>2013-04-12 23:30:55 +0000
committerAlbrecht Schlosser <albrechts.fltk@online.de>2013-04-12 23:30:55 +0000
commit62ae23272b9d4075c86360da46e51c8ec16859bd (patch)
treef31326f951790e3b5620b48bbcc1b0431ae76908 /test
parent5fda885c0306561ab53266e16d87b3c4e164572c (diff)
Add different selection_color()'s and tooltips to scheme test buttons.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9877 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'test')
-rw-r--r--test/unittest_schemes.cxx7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/unittest_schemes.cxx b/test/unittest_schemes.cxx
index cd70d6001..f57ab7b79 100644
--- a/test/unittest_schemes.cxx
+++ b/test/unittest_schemes.cxx
@@ -80,21 +80,28 @@ public:
{ Fl_Button* o = new Fl_Button(10, 9, 90, 25, "button");
o->box(FL_UP_BOX);
o->color((Fl_Color)101);
+ o->tooltip("selection_color() = default");
o->labelfont(5);
} // Fl_Button* o
{ Fl_Button* o = new Fl_Button(10, 36, 90, 25, "button");
o->box(FL_UP_BOX);
o->color((Fl_Color)179);
+ o->selection_color(o->color());
+ o->tooltip("selection_color() = color()");
o->labelfont(4);
o->labelcolor(FL_BACKGROUND2_COLOR);
} // Fl_Button* o
{ Fl_Button* o = new Fl_Button(10, 63, 90, 25, "button");
o->box(FL_UP_BOX);
o->color((Fl_Color)91);
+ o->selection_color(fl_lighter(o->color()));
+ o->tooltip("selection_color() = fl_lighter(color())");
} // Fl_Button* o
{ Fl_Button* o = new Fl_Button(10, 90, 90, 25, "button");
o->box(FL_UP_BOX);
o->color(FL_INACTIVE_COLOR);
+ o->selection_color(fl_darker(o->color()));
+ o->tooltip("selection_color() = fl_darker(color())");
o->labelcolor(FL_BACKGROUND2_COLOR);
} // Fl_Button* o
{ Fl_Tabs* o = new Fl_Tabs(10, 120, 320, 215);