RasterMouse.addTimerListener( callback, arg )

Register a callback function to be called at periodic intervals during the duration of a drag operation. The callback function can introspect the mouse position and implement auto-scroll behaviors in a control.

This method has no effect if invoked when no drag operation is in progress. The callback function will have the following signature:
//////////////////////////////////////////////////
//  mouseEvt: a RasterMouseEvent
//  arg:      the 'arg' parameter
function myCallback( mouseEvt, arg )
{
    //...
}
The callback function will stop being invoked when the current drag operation ends.

Parameters

Name Type   Description
callback function Function to be called on timer intervals.
arg any Argument to be passed to the callback function.

See Also

Home Examples Download License
 
Copyright © 2010-2017 Edwin R. López