Sliders library SlidAttach() SlidSetValue()
Programming guideline of WinDom

SlidSetFunc()

NAME

SlidSetFunc() - define a slider event function.

PROTOTYPAGE

void SlidSetFunc( void *slid, void (*func)(), void *data);

PARAMETERS

slid:
pointer to a slider structure,

func:
pointer to a slider event function,

data:
pointer to a user data.

DESCRIPTION

This function attaches a slider event function to a slider. When the slider value is modified, this function is called with the following prototype :

void doslid( WINDOW *win, int mode, float value, void data);

win and mode are respectively the window descriptor host and the formular type (OC_FORM or OC_TOOLBAR). Parameter value is the new value of the slider. data is an optional pointer to a user data specified by SlidSetFunc().

SEE ALSO

SlidCreate().