Beispiel #1
0
        public virtual void OnMouseMove(MouseEventArgs e)
        {
            bool cursorChanged = false;

            foreach (SelectBoxHandle sbh in handles)
            {
                if (sbh.HitTest(e.X, e.Y))
                {
                    parent.Cursor = sbh.Cursor;
                    cursorChanged = true;
                }
            }

            if (!cursorChanged)
            {
                parent.Cursor = Cursors.Default;
            }

            if (activeHandle != null)
            {
                activeHandle.OnDragging(e);
            }
        }