]> Creatis software - bbtk.git/commitdiff
take into account SCROLL_CHANGED
authorjean-pierre roux <jean-pierre.roux@creatis.insa-lyon.fr>
Tue, 23 Sep 2008 08:29:38 +0000 (08:29 +0000)
committerjean-pierre roux <jean-pierre.roux@creatis.insa-lyon.fr>
Tue, 23 Sep 2008 08:29:38 +0000 (08:29 +0000)
packages/wx/src/bbwxSlider.cxx

index 5345a005150e3292de99bd7f5ff2ed35fba62cd7..a66bac4e6a230ba5efba4b15895b9110a71982cc 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/09/23 08:29:38 $
+  Version:   $Revision: 1.12 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
@@ -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();
   }
   //-------------------------------------------------------------------------