static void PlaceInFloatingFrame(DockNotebook notebook, DockNotebookTab tab, Rectangle allocation, int ox, int oy) { var newWindow = new DockWindow(); var newNotebook = newWindow.Container.GetFirstNotebook(); var newTab = newNotebook.AddTab(); var workspaceWindow = (SdiWorkspaceWindow)tab.Content; newTab.Content = workspaceWindow; // JONTODO //newWindow.Title = DefaultWorkbench.GetTitle (workspaceWindow); workspaceWindow.SetDockNotebook(newNotebook, newTab); newWindow.Move(ox - w / 2, oy - h / 2); newWindow.Resize(w, h); newWindow.ShowAll(); DockNotebook.ActiveNotebook = newNotebook; }
public static DockWindow MoveToFloatingWindow(SdiWorkspaceWindow workspaceWindow, int x, int y, int width, int height) { var window = new DockWindow(); var notebook = window.Container.GetFirstNotebook(); var tab = notebook.AddTab(); tab.Content = workspaceWindow; // jontodo //window.Title = DefaultWorkbench.GetTitle (workspaceWindow); workspaceWindow.SetDockNotebook(notebook, tab); window.Move(x, y); window.Resize(width, height); window.ShowAll(); return(window); }
public static DockWindow MoveToFloatingWindow (SdiWorkspaceWindow workspaceWindow, int x, int y, int width, int height) { var window = new DockWindow (); var notebook = window.Container.GetFirstNotebook (); var tab = notebook.AddTab (); tab.Content = workspaceWindow; // jontodo //window.Title = DefaultWorkbench.GetTitle (workspaceWindow); workspaceWindow.SetDockNotebook (notebook, tab); window.Move (x, y); window.Resize (width, height); window.ShowAll (); return window; }
static void PlaceInFloatingFrame (DockNotebook notebook, DockNotebookTab tab, Rectangle allocation, int ox, int oy) { var newWindow = new DockWindow (); var newNotebook = newWindow.Container.GetFirstNotebook (); var newTab = newNotebook.AddTab (); var workspaceWindow = (SdiWorkspaceWindow)tab.Content; newTab.Content = workspaceWindow; // JONTODO //newWindow.Title = DefaultWorkbench.GetTitle (workspaceWindow); workspaceWindow.SetDockNotebook (newNotebook, newTab); newWindow.Move (ox - w / 2, oy - h / 2); newWindow.Resize (w, h); newWindow.ShowAll (); DockNotebook.ActiveNotebook = newNotebook; }