DO NOT REPLY TO THIS MESSAGE.  INSTEAD, POST ANY RESPONSES TO THE LINK BELOW.

[STR New]

Link: http://www.fltk.org/str.php?L1915
Version: 2.0-current





Link: http://www.fltk.org/str.php?L1915
Version: 2.0-current
Index: test/scroll.cxx
===================================================================
--- test/scroll.cxx     (revision 6841)
+++ test/scroll.cxx     (working copy)
@@ -80,11 +80,12 @@
 void type_cb(Widget*, void* v) {
   thescroll->type(int((long)v));
   thescroll->relayout(); // changed from fltk1 setting of redraw()
+  printf("is_group() yet? %s\n", thescroll->is_group() ? "Yes" : "No");
 }
 
 void load_menu_choice (Choice* c)  {
  c->begin();
-  new Item("0", 0, type_cb, (void*)0);
+  new Item("DEFAULT", 0, type_cb, (void*)ScrollGroup::DEFAULT);
   new Item("HORIZONTAL", 0, type_cb, (void*)ScrollGroup::HORIZONTAL);
   new Item("VERTICAL", 0, type_cb, (void*)ScrollGroup::VERTICAL);
   new Item("BOTH", 0, type_cb, (void*)ScrollGroup::BOTH);
Index: fltk/ScrollGroup.h
===================================================================
--- fltk/ScrollGroup.h  (revision 6841)
+++ fltk/ScrollGroup.h  (working copy)
@@ -67,13 +67,14 @@
   ScrollGroup(int x,int y,int w,int h, const char*l=0, bool begin=false);
 
   enum { // values for type()
-    HORIZONTAL = 1,
-    VERTICAL = 2,
-    BOTH = 3,
-    ALWAYS_ON = 4,
-    HORIZONTAL_ALWAYS = 5,
-    VERTICAL_ALWAYS = 6,
-    BOTH_ALWAYS = 7
+    DEFAULT = GROUP_TYPE, // Added to avoid using 0 and messing up with RTTI 
funcionality.
+    HORIZONTAL = 1 | GROUP_TYPE,
+    VERTICAL = 2 | GROUP_TYPE,
+    BOTH = 3 | GROUP_TYPE,
+    ALWAYS_ON = 4 | GROUP_TYPE,
+    HORIZONTAL_ALWAYS = 5 | GROUP_TYPE,
+    VERTICAL_ALWAYS = 6 | GROUP_TYPE,
+    BOTH_ALWAYS = 7 | GROUP_TYPE
   };
 
   int xposition() const {return xposition_;}
_______________________________________________
fltk-bugs mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-bugs

Reply via email to