Window library WindGet() WindCalc()
Programming guideline of WinDom

WindSlider()

PROTOTYPAGE

void WindSlider( WINDOW *win, int slider);

PARAMETERS

win:
window descriptor,

slider:
a bit field (actions to perform):

HSLIDER:
update horizontal slider,

VSLIDER:
update vertical slider.

DESCRIPTION

WindSlider() updates the size and position of horizontal and vertical sliders using the values of the fields xpos, ypos, xpos_max, ypos_max, h_u and w_u of the window descriptor.

SLIDERS VARIABLES

ypos
Sets the vertical slider position. It is a positive value in 0 and ypos_max: 0 <= ypos < ypos_max,

h_u
sets the vertical offset (in pixel) when a scroll event occurs,

xpos
as ypos, xpos is devoted to the horizontal slider position,

w_u
as h_u, horizontal offset.