/// <summary> /// Mouse has moved inside the view. /// </summary> /// <param name="c">Reference to the source control instance.</param> /// <param name="pt">Mouse position relative to control.</param> public override void MouseMove(Control c, Point pt) { // If the separator is allowed to be moved by the user if (_source.SeparatorCanMove) { // Cursor depends on orientation direction if (_source.SeparatorOrientation == Orientation.Vertical) { _source.SeparatorControl.Cursor = (_splitCursors ? _cursorVSplit : _cursorVMove); } else { _source.SeparatorControl.Cursor = (_splitCursors ? _cursorHSplit : _cursorHMove); } } // If we are currently capturing input if (_moving) { // Update the split indicator to new position Point splitPt = RecalcClient(pt); DrawSeparatorReposition(splitPt); // Callback to the source to show movement if (_source.SeparatorMoving(pt, splitPt)) { AbortMoving(); } } // Let base class do standard processing base.MouseMove(c, pt); }
/// <summary> /// Mouse has moved inside the view. /// </summary> /// <param name="c">Reference to the source control instance.</param> /// <param name="pt">Mouse position relative to control.</param> public override void MouseMove(Control c, Point pt) { // If the separator is allowed to be moved by the user if (_source.SeparatorCanMove) { UpdateCursor(); } // If we are currently capturing input if (_moving) { // Update the split indicator to new position Point splitPt = RecalcClient(pt); DrawSeparatorReposition(splitPt); // Callback to the source to show movement if (_source.SeparatorMoving(pt, splitPt)) { AbortMoving(); } } // Let base class do standard processing base.MouseMove(c, pt); }