BBTK_BEGIN_DESCRIBE_BLACK_BOX(InputText,bbtk::WxBlackBox);
BBTK_NAME("InputText");
BBTK_AUTHOR("laurent guigues at creatis.insa-lyon.fr");
- BBTK_DESCRIPTION("A zone in which the user can enter a text (wxTextCtrl)");
+ BBTK_DESCRIPTION("(C++,Python) A zone in which the user can enter a text (wxTextCtrl)");
BBTK_INPUT(InputText,In,"Initial text (default '')",std::string,"");
BBTK_INPUT(InputText,Title,"Title of the input zone (default '') ", std::string,"");
BBTK_INPUT(InputText,ReactiveOnKeystroke,"0 not event generated, 1 Enter event genereated, 2 All keys, (default '2') ", int,"");
// Insert the sizer in the main panel and refresh the layout
panel->SetSizer(sizer);
}
- //-------------------------------------------------------------------------
-
-
//-------------------------------------------------------------------------
SliderWidget::~SliderWidget()
{
}
- //-------------------------------------------------------------------------
-
//-------------------------------------------------------------------------
void SliderWidget::OnResolutionOfSlider(wxScrollEvent& event)
int minTmp = value - delta/2;
int maxTmp = value + delta/2;
if (minTmp<min)
- {
- minTmp = min;
- // maxTmp = delta;
- }
+ {
+ minTmp = min;
+ // maxTmp = delta;
+ }
if (maxTmp>max)
- {
- maxTmp = max;
- }
+ {
+ maxTmp = max;
+ }
mwxSlider->SetRange(minTmp,maxTmp);
RefreshLabels();
}
- //-------------------------------------------------------------------------
-
-
- //-------------------------------------------------------------------------
+//-------------------------------------------------------------------------
void SliderWidget::OnSliderTrack(wxScrollEvent& event)
{
if(reactiveOnTrack)
}
RefreshLabels();
}
- //-------------------------------------------------------------------------
-
- //-------------------------------------------------------------------------
+//-------------------------------------------------------------------------
void SliderWidget::OnSliderRelease(wxScrollEvent& event)
{
// When user releases the slider