hslider (x, y, len, bmap, min, max, var);
vslider (x, y, len, bmap, min, max, var);
Horizontal or vertical slider, which can be dragged with the
mouse for entering values. The number len gives
the height or width of the slider range in pixels. The bitmap bmap
is used for the slider button, that is dragged with the left mouse button pressed.
The min and max numbers
determine the value range of the slider. The variable is set to a value within
that range dependent on the current slider position. If moved to the upper
or left position, var is set to the min
value, at the lower or right position it is set to the max
value.
Parameter
| x |
X position of upper left edge |
| y |
Y position of upper left edge |
| len |
Lenght of the slider, in pixels |
| bmap |
Bitmap or file name |
| min |
Value at the left/upper end |
| max |
Value at the right/lower end |
| var |
Variable to be modified |
Example:
hslider(10,10,40,slider_map,1,8,my_var); // shifts my_var from 1 to 8 over 40 pixels
See also:
PANEL, BMAP, layer, pos_x,
pos_y, alpha, flags, button, needle, window, digits, mouse_map, on_click
► latest
version online