Author: spitzak
Date: 2007-06-06 13:46:02 -0400 (Wed, 06 Jun 2007)
New Revision: 5878
Log:
Bit used to indicate VALUATOR was also used by the slider tick marks,
making them draw crazy. After trying different bits for awhile, I
changed it to instead check if the widget accepts the PUSH event, this
seems to work equally well and is certainly a nicer solution.


Modified:
   trunk/fltk/Widget.h
   trunk/src/Valuator.cxx

Modified: trunk/fltk/Widget.h
===================================================================
--- trunk/fltk/Widget.h 2007-06-05 21:45:45 UTC (rev 5877)
+++ trunk/fltk/Widget.h 2007-06-06 17:46:02 UTC (rev 5878)
@@ -74,7 +74,6 @@
     RESERVED_TYPE      = 0x64,
     TOGGLE    = RESERVED_TYPE+1,
     RADIO     = RESERVED_TYPE+2,
-    VALUATOR  = RESERVED_TYPE+4,
     GROUP_TYPE         = 0xe0,
     WINDOW_TYPE        = 0xf0
   };

Modified: trunk/src/Valuator.cxx
===================================================================
--- trunk/src/Valuator.cxx      2007-06-05 21:45:45 UTC (rev 5877)
+++ trunk/src/Valuator.cxx      2007-06-06 17:46:02 UTC (rev 5878)
@@ -49,7 +49,7 @@
     moves the slider and then lets it go on a different value than it
     started.
   - fltk::WHEN_RELEASE_ALWAYS: will do the callback when
-  the user lets go of the slider whether or not the value changed.
+    the user lets go of the slider whether or not the value changed.
   - fltk::WHEN_NEVER: do not do the callback, instead it will turn
     on the changed() flag.
 
@@ -76,7 +76,6 @@
   clear_flag(ALIGN_MASK);
   set_flag(ALIGN_BOTTOM);
   when(WHEN_CHANGED);
-  type(Widget::VALUATOR); // for Item
   value_ = 0.0;
   step_ = 0;
   minimum_ = 0;

_______________________________________________
fltk-commit mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-commit

Reply via email to