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); }
public void MouseLeft(MouseEventArgs e) { this.m_DragActive = false; this.Focus(); Control controlBase = this.ControlBase; IUIInput uIInputControl = this.GetUIInputControl(e); if (uIInputControl != null) { uIInputControl.IsMouseDown = true; uIInputControl.IsMouseActive = false; uIInputControl.IsKeyDown = false; uIInputControl.IsKeyActive = false; if (controlBase != null) { controlBase.Cursor = uIInputControl.GetMouseCursor(e); } uIInputControl.MouseLeft(e, true); } this.m_MouseDownControl = uIInputControl; this.ControlBase.UIInvalidate(this); }