RScrollbar.OnChangeValue


public event OnChangeValue

Prototype:

OnChangeValue(Sender, EventData)

Parameters

Sender
the event firing control
EventData
contains a string encapsulating the scroll type and the new value separated by ":".

Description:

Event raised when the value for a scalable/scrollable object changes.
Scroll type can have one of these values:
SCROLL_NONE
SCROLL_JUMP
SCROLL_STEP_BACKWARD
SCROLL_STEP_FORWARD
SCROLL_PAGE_BACKWARD
SCROLL_PAGE_FORWARD
SCROLL_STEP_UP
SCROLL_STEP_DOWN
SCROLL_PAGE_UP
SCROLL_PAGE_DOWN
SCROLL_STEP_LEFT
SCROLL_STEP_RIGHT
SCROLL_PAGE_LEFT
SCROLL_PAGE_RIGHT
SCROLL_START
SCROLL_END

Return value:

This event can close the application by returning MSG_APPLICATION_QUIT. Any other return value will be ignored.

Example
	// EventData must be evaluated like this
	var arr=StrNumberSplit(EventData, ":");
	var scroll_type=arr[0];
	var new_value=arr[1];