Hi there,
This may be a stupid question. I'm fairly new to C++. I'm wanting to use two
Fl_Scrollbars with float values rather then integers.
In Fl_Scrollbars documentation, it states;
Scrollbars have step(1) preset (they always return integers). If desired you
can set the step() to non-integer
Fl_Scrollbar has a value(int) member function that allows to give
it integer values. It also inherits from its superclass Fl_Valuator
a value(double) member function that gives it a double value.
Do as follows:
Fl_Scrollbar *sb;
double d = 45.2;
((Fl_Valuator*)sb)-value(d);
Hi there,
2 matches
Mail list logo