Hi;
I do not follow just how the click and drag value settign for a
Fl_Value_Input decides the step size.
The class reference 1.1.8 says it should alter the value by one step()
per pixel. However in my interface, it seems to alter between 2 and 3
times step() per pixel dragged -- that is, it increments or decrements
sometimes by 2 and sometimes by 3 step() so appears to inrement by an
intermediate amount then round to the nearest step().
Here's a snippet of the .fl file that defines one such widget, it
increments by .02 or .03 and intermediate values cannot be obtained by
dragging (of course you can type it in) How should I specify the step
should really be 0.01?
Thanks for any help
Robert
#####################################################
Fl_Value_Input patchfactor {
label patchfactor
callback {Fl_Value_Input *w;
w = (Fl_Value_Input *)o;
cp->patchfactor = w->value();}
xywh {165 135 90 23} box FLAT_BOX color 51 align 1 step 0.01
}
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk