Example #1
0
            protected override void OnMouseLeave(EventArgs e)
            {
                base.OnMouseLeave(e);

                if (resizing == false)
                {
                    resizeType = resizeTypes.None;
                }
            }
Example #2
0
            protected override void OnMouseHover(EventArgs e)
            {
                base.OnMouseHover(e);

                var mclient = PointToClient(MousePosition);

                if (EnableHorizontalResizing)
                {
                    if (mclient.X < ResizeWidth)
                    {
                        resizeType = resizeTypes.Left;
                    }
                    else if (mclient.X > Width - ResizeWidth)
                    {
                        resizeType = resizeTypes.Right;
                    }
                    else
                    {
                        resizeType = resizeTypes.None;
                    }
                }
            }
Example #3
0
 private void Owner_UpClick(object sender, MouseEventArgs e)
 {
     resizing   = false;
     resizeType = resizeTypes.None;
 }
Example #4
0
            protected override void OnMouseLeave(EventArgs e)
            {
                base.OnMouseLeave(e);

                if (resizing == false)
                    resizeType = resizeTypes.None;
            }
Example #5
0
            protected override void OnMouseHover(EventArgs e)
            {
                base.OnMouseHover(e);

                var mclient = PointToClient(MousePosition);
                if (EnableHorizontalResizing)
                {
                    if (mclient.X < ResizeWidth)
                        resizeType = resizeTypes.Left;
                    else if (mclient.X > Width - ResizeWidth)
                        resizeType = resizeTypes.Right;
                    else
                        resizeType = resizeTypes.None;
                }
            }
Example #6
0
 private void Owner_UpClick(object sender, MouseEventArgs e)
 {
     resizing = false;
     resizeType = resizeTypes.None;
 }