Program: bbtk
Module: $RCSfile: bbwxSlider.cxx,v $
Language: C++
- Date: $Date: 2009/02/10 14:56:50 $
- Version: $Revision: 1.19 $
+ 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
long wxorientation=0;
if (orientation==0)
{
- sizeX = 2;
- sizeY = 40;
- wxorientation = wxSL_HORIZONTAL;
+ sizeX = 2;
+ sizeY = 40;
+ wxorientation = wxSL_HORIZONTAL;
if (labels==true)
{
wxlabels = wxSL_LABELS;
//--------------------------------------------------------------------------
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)