private void ContentWindow_BeginDrag(Point captionLocation) { Point pt = captionLocation; pt = DragControl.PointToScreen(pt); m_mouseOffset.X = pt.X - StartMousePosition.X; m_mouseOffset.Y = pt.Y - StartMousePosition.Y; }
private void Pane_BeginDrag() { Point pt = new Point(0, 0); pt = DragControl.PointToScreen(pt); m_mouseOffset.X = pt.X - StartMousePosition.X; m_mouseOffset.Y = pt.Y - StartMousePosition.Y; }
private void AutoHideWindowSplitter_BeginDrag(Point ptSplitter) { m_splitterLocation = DragControl.PointToScreen(ptSplitter); Point ptMouse = StartMousePosition; m_mouseOffset.X = m_splitterLocation.X - ptMouse.X; m_mouseOffset.Y = m_splitterLocation.Y - ptMouse.Y; Rectangle rect = GetWindowSplitterDragRectangle(); SplitterOutline.Show(rect); }
private void AutoHideWindowSplitter_BeginDrag(Point ptSplitter) { m_splitterLocation = DragControl.PointToScreen(ptSplitter); Point ptMouse = StartMousePosition; m_mouseOffset.X = m_splitterLocation.X - ptMouse.X; m_mouseOffset.Y = m_splitterLocation.Y - ptMouse.Y; Rectangle rect = GetWindowSplitterDragRectangle(); DragOutline = DrawHelper.CreateDragOutline(rect, OutlineBorderWidth); }
private void TabWindowSplitter_BeginDrag(Point ptSplitter) { m_splitterLocation = ptSplitter; m_splitterLocation = DragControl.PointToScreen(m_splitterLocation); Point ptMouse = StartMousePosition; m_mouseOffset.X = m_splitterLocation.X - ptMouse.X; m_mouseOffset.Y = m_splitterLocation.Y - ptMouse.Y; Rectangle rect = TabWindowSplitter_GetDragRectangle(); DragFrame = DrawHelper.CreateDragFrame(rect, DragBorderWidth); }
private void Content_BeginDrag(Rectangle rectTabWindow) { TabWindow tabWindow = (TabWindow)DragControl; Point pt; if (tabWindow is DocumentWindow) { pt = new Point(rectTabWindow.Top, rectTabWindow.Left); } else { pt = new Point(rectTabWindow.Left, rectTabWindow.Bottom); } pt = DragControl.PointToScreen(pt); m_mouseOffset.X = pt.X - StartMousePosition.X; m_mouseOffset.Y = pt.Y - StartMousePosition.Y; }
private void Content_BeginDrag(Rectangle rectPane) { DockPane pane = (DockPane)DragControl; Point pt; if (pane.DockState == DockState.Document) { pt = new Point(rectPane.Top, rectPane.Left); } else { pt = new Point(rectPane.Left, rectPane.Bottom); } pt = DragControl.PointToScreen(pt); m_mouseOffset.X = pt.X - StartMousePosition.X; m_mouseOffset.Y = pt.Y - StartMousePosition.Y; }