Program: bbtk
Module: $RCSfile: bbwxSlider.cxx,v $
Language: C++
- Date: $Date: 2009/10/05 22:44:52 $
- Version: $Revision: 1.25 $
+ Date: $Date: 2012/10/24 15:04:30 $
+ Version: $Revision: 1.26 $
=========================================================================*/
/* ---------------------------------------------------------------------
void SetRange(int min, int max);
// Update the texts which display the min/max/current values of the slider
void RefreshLabels();
-
+
+ void SetReactiveOnTrack(bool ok);
+
+
private:
Slider* mBox;
wxSlider *mwxSlider;
}
//-------------------------------------------------------------------------
-
+
+
//-------------------------------------------------------------------------
SliderWidget::~SliderWidget()
{
mwxSlider->SetRange(min,max);
RefreshLabels();
}
+
+
+ //-------------------------------------------------------------------------
+ void SliderWidget::SetReactiveOnTrack(bool ok)
+ {
+ reactiveOnTrack = ok;
+ }
+
//-------------------------------------------------------------------------
// desperate try // JPR
if ( bbGetInputMin() != ((SliderWidget*)bbGetOutputWidget())->GetMin() || bbGetInputMax() != ((SliderWidget*)bbGetOutputWidget())->GetMax() )
{
- ((SliderWidget*)bbGetOutputWidget())->SetRange(bbGetInputMin(),bbGetInputMax()) ;
+ ((SliderWidget*)bbGetOutputWidget())->SetRange(bbGetInputMin(),bbGetInputMax()) ;
}
-
+
+ ((SliderWidget*)bbGetOutputWidget())->SetReactiveOnTrack( bbGetInputReactiveOnTrack() ) ;
+
bbSetOutputOut( bbGetInputIn() );
if (bbGetOutputWidget()!=0)
{
}
}
+//--------------------------------------------------------------------------
void Slider::CreateWidget(wxWindow* parent)
{