This control was moved to the main library under the same name, see IupVal.
If you still need to use the old version, then you must call the function IupOldValOpen(). It will replace the registration of the new IupVal by the old IupVal.
This is an additional control that depends on the CD library. It is included in the Controls Library.
It inherits from IupCanvas.
HANDLER_IMAGE (non inheritable): Handler image name. When defined the handle will not be drawn an this image will be used instead.
HANDLER_IMAGE_INACTIVE (non inheritable): Inactive handler image name. Used when HANDLER_IMAGE is used and the control is inactive.
MOUSEMOVE_CB: Called each time the user moves the valuators thumb keeping the mouse button pressed. The value of VALUE is passed as parameter.
int function(Ihandle *ih, double val); [in C] elem:mousemove_cb(val: number) -> (ret: number) [in Lua]
ih:
identifier of the element that activated the
event.
val:
the valuator value.
BUTTON_PRESS_CB: Called when the user presses the left mouse button over the valuator. The value of VALUE is passed as parameter. The thumb is always repositioned to the current mouse position.
int function(Ihandle *ih, double val); [in C] elem:button_press_cb(val: number) -> (ret: number) [in Lua]
ih:
identifier of the element that activated the
event.
val:
the valuator value.
BUTTON_RELEASE_CB: Called when the user releases the mouse button, after having pressed it over the valuator. The value of VALUE is passed as parameter.
int function(Ihandle *ih, double val); [in C] elem:button_release_cb(val: number) -> (ret: number) [in Lua]
ih:
identifier of the element that activated the
event.
val:
the valuator value.
When the keyboard arrows are pressed and released, or the mouse wheel is rotated, the mouse press and the mouse release callbacks are called, in this order. If you hold the key down a mouse move callback is also called. In these cases the value is incremented by 10% of the interval max-min.