Sliders library SlidCreate() SlidSetFunc()
Programming guideline of WinDom

SlidAttach()

NAME

SlidAttach - attach a slider to an object structure in a formular.

PROTOTYPAGE

void SlidAttach( void *slid, int mode, WINDOW *win, int up, int bg, int sld, int dn);

PARAMETERS

slid:
pointer on slider structure created by SlidCreate(),

mode:
OC_FORM or OC_TOOLBAR,

win:
window descriptor of the formular host,

up:
index of decrement widget or -1,

dn:
index of increment widget or -1,

bg:
index of pager widget or -1,

sld:
index of cursor widget or -1.

DESCRIPTION

The function attaches a slider structure to slider object in a formular. Only window and toolbar formular are handled.

Objects up and dn are generally TOUCHEXIT SELECTABLE G_BOXCHAR object containing an up arrow and and down arrow, if slider is vertical or left arrow and right arrow if slider is horizontal. When user clicks on these widget, slide value is increased or descreased using the small increment step defined in line SlidCreate() parameter. up and dn can be set to -1. In these case, the slider doesnot use these widgets.

Object sld should always be a children of the bg object. When the user click on pager object (bg), slider value is increased or decreased using the large increment step define in page SlidCreate() parameter. If sld and bg are set to -1, the slider doesnot use these widgets.

The TOUCHEXIT flags is required for the four objects specified in SlidAttach().

SEE ALSO

SlidCreate().