Skip to content

CursorWindowButtonMotionFcn

  CursorWindowButtonMotionFcn - figure motion callback to support cursors

  Example:
  To activate, use
  set(figurehandle, 'WindowButtonMotionFcn', {@CursorWindowButtonMotionFcn});
  This property is set automatically by CreateCursor

  CursorWindowButtonMotionFcn does not need to be active - if is interferes
  with graphics rendering clear the WindowButtonMotionFcn property

  CursorWindowButtonMotionFcn displays the cursor movement pointer when the
  cursor location is over a line object that belongs to a cursor created by
  CreateCursor. Over a cursor means within 3 pixels of it.

  Note: When the pointer is not over a cursor CursorWindowButtonMotionFcn
  resets the cursor to the default arrow. It will not restore the pointer
  to e.g. an hour glass.

  -------------------------------------------------------------------------
  Author: Malcolm Lidierth 01/07
  Copyright © The Author & King's College London 2007
  -------------------------------------------------------------------------

  Changes:
  22/5/07 whichaxes now handles non-cell rect
  30/01/08 now handles axes contained in a uipanel