VisibleRemoteObject.OnScroll


Deprecated since since version 4.1

public event OnScroll

Prototype:

OnScroll(Sender, EventData)

Parameters

Sender
the event firing control
EventData
contains a string, encapsulating the X and Y relative coordinates separated by ":", the direction of the scroll and the state of the modifier keys(Alt, Shift, Ctrl, etc)

Description:

Generated from button presses for the buttons 4 to 7. Wheel mice are usually configured to generate button press events for buttons 4 and 5 when the wheel is turned.
Event triggered when a scrollable control is scrolled (please check GTK documentation for more information).
Evaluating EventData like this :

    EventData=StrNumberSplit(EventData,":");
    X=EventData[0];
    Y=EventData[1];
    direction=EventData[2];
    state=EventData[3]

will give you the x, y, direction of scroll and the state of the modifier keys.

direction has one of this values:
GDK_SCROLL_UP, GDK_SCROLL_DOWN, GDK_SCROLL_LEFT and GDK_SCROLL_RIGHT

Return value:

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