Esempio n. 1
0
        public override void OnMouseMove(ExMouseEventArgs e)
        {
            base.OnMouseMove(e);

            if (Active)
            {
                Rectangle rect = GetBounds();
                EndPoint = new Point(e.X, e.Y);
                rect     = Rectangle.Union(rect, GetBounds());
                rect.Inflate(10, 10);
                Invalidate(rect);
            }
        }
Esempio n. 2
0
        void ChartBox_MouseMove(object sender, MouseEventArgs e)
        {
            if (Layers.Count > 0)
            {
                ExMouseEventArgs ee = new ExMouseEventArgs(e);
                foreach (ChartLayer layer in Layers)
                {
                    layer.OnMouseMove(ee);
                    if (ee.Suppress)
                    {
                        return;
                    }
                }
            }

            OnChartMouseMove(e);
        }
Esempio n. 3
0
        void ChartBox_MouseUp(object sender, MouseEventArgs e)
        {
            if (Layers.Count > 0)
            {
                ExMouseEventArgs ee = new ExMouseEventArgs(e);
                foreach (ChartLayer layer in Layers)
                {
                    layer.OnMouseUp(ee);
                    if (ee.Suppress)
                    {
                        goto Exit;
                    }
                }
            }

            OnChartMouseUp(e);

Exit:
            ChartMouseDownButton = MouseButtons.None;
            ChartMouseDownPoint  = Point.Empty;
        }
Esempio n. 4
0
        void ChartBox_MouseDown(object sender, MouseEventArgs e)
        {
            if (!ChartBox.Focused && ChartBox.CanFocus)
            {
                ChartBox.Focus();
            }
            ChartMouseDownButton = e.Button;
            ChartMouseDownPoint  = new Point(e.X, e.Y);

            if (Layers.Count > 0)
            {
                ExMouseEventArgs ee = new ExMouseEventArgs(e);
                foreach (ChartLayer layer in Layers)
                {
                    layer.OnMouseDown(ee);
                    if (ee.Suppress)
                    {
                        return;
                    }
                }
            }

            OnChartMouseDown(e);
        }
Esempio n. 5
0
 public virtual void OnMouseUp(ExMouseEventArgs e)
 {
 }
Esempio n. 6
0
 public virtual void OnMouseDown(ExMouseEventArgs e)
 {
 }
Esempio n. 7
0
 public virtual void OnMouseMove(ExMouseEventArgs e)
 {
 }
Esempio n. 8
0
        public override void OnMouseUp(ExMouseEventArgs e)
        {
            base.OnMouseUp(e);

            Active = false;
        }