fn_scrollwheelregister

Contents

Syntax

fn_scrollwheelregister(hobj,callback[,'default|off'])
fn_scrollwheelregister(hobj,'')
fn_scrollwheelregister(hobj,'off|on')
fn_scrollwheelregister(hobj,'default')
fn_scrollwheelregister(hobj,'mask')
fn_scrollwheelregister(hobj,'repair')

Description

This function can register different scroll wheel actions for different
objects children of the same figure, even though Matlab provides only one
'WindowScrollWheelFcn' callback function for the whole figure. Which
action will be executed is determined on the position of the mouse in the
figure.
Input:
- hobj        handle of figure, axes, uipanel or uicontrol
- callback    function with prototype fun(n), where n is the number of
              vertical scrolls; use empty string to unregister callback,
              of fun(n,modifiers), where modifier is a cell array of the
              modifier keys that are pressed during the scrolling
- 'default'   make the scroll wheel action associated to this object the
              figure default action
- 'on|off'    inactivate or reactivate the callback associated to object
              hobj
- 'mask'      the object has not associated callback, but the default
              scroll wheel action will not be executed when the mouse is
              over this object
- 'repair'    repaire registration mechanism that might have been damaged
              consecutive to an error, or to setting of window
              scrollwheelfcn property by another function
See also windowcallbackmanager

Source

Thomas Deneux

Copyright 2012-2017