Beispiel #1
0
        public virtual bool DoMouseUp(Point p, MouseButtons button)
        {
            ZenControlBase ctrl = GetControl(p);

            if (ctrl != null)
            {
                return(ctrl.DoMouseUp(parentToControl(ctrl, p), button));
            }
            return(false);
        }
Beispiel #2
0
        private void onFormMouseUp(object sender, MouseEventArgs e)
        {
            // End resizing/moving
            doMouseUpRM();

            // Got capture?
            if (ctrlCapturingMouse != null)
            {
                // Transform to control's coordinates
                Point pCtrl = new Point(e.Location.X - ctrlCapturingMouse.AbsLeft, e.Location.Y - ctrlCapturingMouse.AbsTop);
                ctrlCapturingMouse.DoMouseUp(pCtrl, e.Button);
                return;
            }
            // Handle otherwise
            DoMouseUp(e.Location, e.Button);
        }