Sliders library SlidGetValue() Utility library
Programming guideline of WinDom

SlidSetSize()

NAME

SlidSetSize - set the size of a slider cursor widget.

PROTOTYPAGE

void SlidSetSize( void *slid, int size);

PARAMETERS

slid:
pointer to a slider structure,

size:
new size, a value between 0 and 1000.

DESCRIPTION

The function change the size (width for an horizontal slider and height for a vertical slider) of the slider cursor widget. A value between 0 and 1000 is requested, 1000 means the largest possible size (it is the size of the cursor parent widget). The cursor and it root element are redrawn.

Generally, a cursor have a fixed size. But in the case of a slider associated to a window display a list a element, for example, this size can be used to symbolize the number of elements displayed in the window compare to the total of elements. In this case :

     		size = MIN( (element_seen / element_total)  * 1000, 1000)