protected override void OnMouseLeave(EventArgs e) { base.OnMouseLeave(e); if (resizing == false) { resizeType = resizeTypes.None; } }
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; } } }
private void Owner_UpClick(object sender, MouseEventArgs e) { resizing = false; resizeType = resizeTypes.None; }
protected override void OnMouseLeave(EventArgs e) { base.OnMouseLeave(e); if (resizing == false) resizeType = resizeTypes.None; }
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; } }