Esempio n. 1
0
        public bool MouseMove(MouseEventArgs e)
        {
            Control controlBase = this.ControlBase;

            if (!this.m_DragActive && this.MouseDownControl != null)
            {
                if (controlBase != null)
                {
                    controlBase.Cursor = this.MouseDownControl.GetMouseCursor(e);
                }
                this.MouseDownControl.MouseMove(e);
                this.ControlBase.UIInvalidate(this);
            }
            else
            {
                IUIInput uIInputControl = this.GetUIInputControl(e);
                if (uIInputControl != null)
                {
                    if (controlBase != null)
                    {
                        controlBase.Cursor = uIInputControl.GetMouseCursor(e);
                    }
                    uIInputControl.MouseMove(e);
                    return(true);
                }
                controlBase.Cursor = Cursors.Default;
            }
            return(false);
        }