]> Creatis software - bbtk.git/blobdiff - packages/wx/src/bbwxSlider.cxx
Forgot this one
[bbtk.git] / packages / wx / src / bbwxSlider.cxx
index 5345a005150e3292de99bd7f5ff2ed35fba62cd7..bbaa71351b195a8788ac6174f1c4a036ec3397c5 100644 (file)
@@ -3,8 +3,8 @@
   Program:   bbtk
   Module:    $RCSfile: bbwxSlider.cxx,v $
   Language:  C++
-  Date:      $Date: 2008/04/18 12:59:53 $
-  Version:   $Revision: 1.11 $
+  Date:      $Date: 2008/10/06 09:05:07 $
+  Version:   $Revision: 1.13 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
@@ -42,7 +42,7 @@ namespace bbwx
                             int vmin,
                             int vmax,
                             int value,
-              int reactiveontrack)
+                             int reactiveontrack)
     :  
     wxPanel( parent, -1, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL),
     mBox(box),
@@ -110,7 +110,13 @@ namespace bbwx
             (void (wxPanel::*)(wxScrollEvent&))
              &SliderWidget::OnSliderTrack ); 
     
+    Connect( mwxSlider->GetId(),  
+            wxEVT_SCROLL_CHANGED, 
 
+            (wxObjectEventFunction) 
+            (void (wxPanel::*)(wxScrollEvent&))
+             &SliderWidget::OnSliderTrack );
+              
     // If asked : creation of the other little slider which allows to change 
     // the resolution of the main slider
     if (changeresolution==true){
@@ -260,12 +266,13 @@ namespace bbwx
     {
     // When user releases the slider 
     // we update the output of the box
+    
     mBox->bbSetOutputOut( mwxSlider->GetValue() );
     mBox->bbSetInputIn( mwxSlider->GetValue() );
     // and signal that the output has changed
     mBox->bbSignalOutputModification("Out");    
     }
-    RefreshLabels();  
+    RefreshLabels();
   }
   //-------------------------------------------------------------------------