From 2915bf12afeaf941e35875cd8a16fcddbbceae43 Mon Sep 17 00:00:00 2001 From: jean-pierre roux Date: Tue, 23 Sep 2008 08:29:38 +0000 Subject: [PATCH] take into account SCROLL_CHANGED --- packages/wx/src/bbwxSlider.cxx | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/packages/wx/src/bbwxSlider.cxx b/packages/wx/src/bbwxSlider.cxx index 5345a00..a66bac4 100644 --- a/packages/wx/src/bbwxSlider.cxx +++ b/packages/wx/src/bbwxSlider.cxx @@ -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(); } //------------------------------------------------------------------------- -- 2.47.1