Next: , Previous: , Up: Dial Object   [Contents][Index]


17.3.3 Dial Interaction

By default, the dial value is returned to the application when the user releases the mouse. It is possible to change this behavior using the following routine

void fl_set_object_return(FL_OBJECT *obj, unsigned int when);

where when can be one of the following

FL_RETURN_NONE

Never report or invoke callback.

FL_RETURN_END_CHANGED

Return or invoke callback at end (mouse release) and only if the dial value is changed. This is the default setting.

FL_RETURN_CHANGED

Return or invoke callback whenever the dial value is changed.

FL_RETURN_END

Return or invoke callback at the end regardless if the dial value is changed or not.

FL_RETURN_ALWAYS

Return or invoke callback when value has changed or mouse button has been released.