[XForms] An improved slider patch

Angus Leeming angus.leeming at btopenworld.com
Wed May 5 16:43:55 EDT 2004


* uses a timeout to trigger the repeat (as did slider_v2.diff)
* the repeat interval is configurable, through new functions:

/** Functions to set and get the timeout value used by the
    slider code to increment the position of the knob.
 */
FL_EXPORT int fl_get_slider_repeat(FL_OBJECT *ob );
FL_EXPORT void fl_set_slider_repeat(FL_OBJECT *ob, int millisec);

* slider behaviour is configurable on a per-slider basis.

No changes to any publicly-visible structs, so the library remains 
binary compatible with version 1.0.

Suggestions and improvements are, of course, welcome, but if no one 
objects, I'll commit this. The counter code can be refactored in 
similar fashion also.

Angus
-------------- next part --------------
A non-text attachment was scrubbed...
Name: slider_v3.diff
Type: text/x-diff
Size: 4479 bytes
Desc: not available
Url : attachments/20040505/37716ef0/attachment-0010.bin 


More information about the Xforms mailing list