Exemplo n.º 1
0
 protected override sealed void OnMouseMove(MouseEventArgs e)
 {
     SetStyle(ControlStyles.Selectable, true);
     Focus();
     base.OnMouseMove(e);
     if (mouseDown)
     {
         view.OnMouseDragged(new BasicMouseEventArgs(e, Width, Height, () => ModifierKeys, ViewToolTip));
     }
     else
     {
         view.OnMouseMoved(new BasicMouseEventArgs(e, Width, Height, () => ModifierKeys, ViewToolTip));
     }
 }
        protected internal override void OnMouseDragged(BasicMouseEventArgs e)
        {
            if (dragging)
            {
            }
            BasicView v = GetComponentAt(mouseDownX, mouseDownY);

            if (v != null)
            {
                v.OnMouseDragged(new BasicMouseEventArgs(e, xpos[mouseDownX], ypos[mouseDownY], widths[mouseDownX],
                                                         heights[mouseDownY]));
            }
            //TODO: splitter
        }