summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorGreg Ercolano <erco@seriss.com>2012-04-14 20:35:56 +0000
committerGreg Ercolano <erco@seriss.com>2012-04-14 20:35:56 +0000
commit3cf006f5c363d54392a7a8e955ee3b465b630e0c (patch)
treeadacf8050890c13dabc2d454fc76a60a55655a68 /test
parentdb2cca57f1f647fc82eb1e5e149ccc21ca3fc707 (diff)
Solves STR #2681.
Added ABI-breaking Fl_Table::scrollbar_size() with new ABI #ifdefs. tests/unittests program modified to test this feature if enabled. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9345 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'test')
-rw-r--r--test/unittest_scrollbarsize.cxx11
1 files changed, 9 insertions, 2 deletions
diff --git a/test/unittest_scrollbarsize.cxx b/test/unittest_scrollbarsize.cxx
index f50d38da0..ea67d5f65 100644
--- a/test/unittest_scrollbarsize.cxx
+++ b/test/unittest_scrollbarsize.cxx
@@ -126,7 +126,10 @@ class ScrollBarSizeTest : public Fl_Group {
if ( strcmp(label,"A: Scroll Size") == 0 ) {
brow_a->scrollbar_size(val);
tree_a->scrollbar_size(val);
- //table_a->scrollbar_size(val); // awaiting method (ABI)
+#if FLTK_ABI_VERSION >= 10302
+ // NEW
+ table_a->scrollbar_size(val);
+#endif
} else {
Fl::scrollbar_size(val);
}
@@ -191,7 +194,7 @@ public:
slide_glob->callback(slide_cb, (void*)this);
slide_glob->labelsize(12);
Fl_Value_Slider *slide_browa = new Fl_Value_Slider(X+350,Y,100,18,"A: Scroll Size");
- slide_browa->value(16);
+ slide_browa->value(0);
slide_browa->type(FL_HORIZONTAL);
slide_browa->align(FL_ALIGN_LEFT);
slide_browa->range(0.0, 30.0);
@@ -203,7 +206,11 @@ public:
"Scrollbar's size should change interactively as size sliders are changed.\n"
"Changing 'Global Scroll Size' should affect all three browser's scrollbars UNLESS\n"
"the 'A: Scroll Size' slider is changed, in which case its value will take precedence\n"
+#if FLTK_ABI_VERSION >= 10302
+ "for the 'A' group of widgets.");
+#else
"for the 'A' group of widgets. (NOTE: 'table_a' does not currently support this)");
+#endif
labelsize(10);
align(FL_ALIGN_INSIDE|FL_ALIGN_BOTTOM|FL_ALIGN_LEFT|FL_ALIGN_WRAP);
}