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
(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){
{
// 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();
}
//-------------------------------------------------------------------------