Program: bbtk
Module: $RCSfile: bbwxSlider.cxx,v $
Language: C++
- Date: $Date: 2009/03/19 08:08:14 $
- Version: $Revision: 1.20 $
+ Date: $Date: 2009/03/30 14:42:28 $
+ Version: $Revision: 1.21 $
=========================================================================*/
/* ---------------------------------------------------------------------
void OnResolutionOfSlider(wxScrollEvent& event);
// Accessors
+ void SetValue(int v) { mwxSlider->SetValue(v); }
int GetValue() { return mwxSlider->GetValue(); }
void SetRange(int min, int max);
// Update the texts which display the min/max/current values of the slider
//--------------------------------------------------------------------------
void Slider::Process()
{
+ bbtkDebugMessage("process",3,
+ "Slider "<<bbGetName()<<" input="
+ <<bbGetInputIn()<<std::endl);
+
bbSetOutputOut( bbGetInputIn() );
+ if (bbGetOutputWidget()!=0)
+ {
+ ((SliderWidget*)bbGetOutputWidget())->SetValue(bbGetInputIn());
+ }
}
void Slider::CreateWidget(wxWindow* parent)