[fltk.general] Fl_Scrollbars with floats.

2013-03-12 Thread Robert W
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

Re: [fltk.general] Fl_Scrollbars with floats.

2013-03-12 Thread Manolo Gouy
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,