Esempio n. 1
0
 void winCanvas_MouseUp(object sender, System.Windows.Forms.MouseEventArgs e)
 {
     if (this.currentControl != null)
     {
         GLMouseEventArgs args = e.Translate();
         this.currentControl.InvokeEvent(EventType.MouseUp, args);
     }
 }
Esempio n. 2
0
        void winCanvas_MouseMove(object sender, System.Windows.Forms.MouseEventArgs e)
        {
            var args = e.Translate();

            foreach (var item in this.Children)
            {
                item.InvokeEvent(EventType.MouseMove, args);
            }
        }
Esempio n. 3
0
        void winCanvas_MouseUp(object sender, System.Windows.Forms.MouseEventArgs e)
        {
            GUIMouseEventArgs args = e.Translate();

            if (this.mouseDownControl != null)
            {
                this.mouseDownControl.InvokeEvent(EventType.MouseUp, args);
                this.mouseDownControl = null;
            }
        }
Esempio n. 4
0
        void winCanvas_MouseDown(object sender, System.Windows.Forms.MouseEventArgs e)
        {
            int       x = e.X, y = this.BindingCanvas.Height - e.Y - 1;
            GLControl control = GetControlAt(x, y, this);

            this.currentControl = control;
            if (control != null)
            {
                GLMouseEventArgs args = e.Translate();
                control.InvokeEvent(EventType.MouseDown, args);
            }
        }
Esempio n. 5
0
        void winCanvas_MouseDown(object sender, System.Windows.Forms.MouseEventArgs e)
        {
            GUIMouseEventArgs args = e.Translate();

            foreach (var item in this.Children)
            {
                int x = e.X, y = this.BindingCanvas.Height - e.Y;
                if (item.ContainsPoint(x, y))
                {
                    this.mouseDownControl = item;
                    item.InvokeEvent(EventType.MouseDown, args);
                }
            }
        }