Program: bbtk
Module: $RCSfile: bbwxSlider.cxx,v $
Language: C++
- Date: $Date: 2009/04/16 14:17:50 $
- Version: $Revision: 1.22 $
+ Date: $Date: 2009/04/16 16:08:23 $
+ Version: $Revision: 1.23 $
=========================================================================*/
/* ---------------------------------------------------------------------
// Accessors
void SetValue(int v) { mwxSlider->SetValue(v); }
int GetValue() { return mwxSlider->GetValue(); }
+ int GetMin() {return min;}
+ int GetMax() {return max;}
void SetRange(int min, int max);
// Update the texts which display the min/max/current values of the slider
void RefreshLabels();
bbtkDebugMessage("process",3,
"Slider "<<bbGetName()<<" input="
<<bbGetInputIn()<<std::endl);
-
+
+// desperate try // JPR
+ if ( bbGetInputMin() != ((SliderWidget*)bbGetOutputWidget())->GetMin() || bbGetInputMax() != ((SliderWidget*)bbGetOutputWidget())->GetMax() )
+ {
+ ((SliderWidget*)bbGetOutputWidget())->SetRange(bbGetInputMin(),bbGetInputMax()) ;
+ }
+
bbSetOutputOut( bbGetInputIn() );
if (bbGetOutputWidget()!=0)
{