public GraphForm(Manager manager) { InitializeComponent(); this.manager = manager; paneList = new PaneList(); paneLayout = PaneLayout.SingleColumn; msGraphControl.BorderStyle = BorderStyle.None; msGraphControl.MasterPane.InnerPaneGap = 1; msGraphControl.MouseDownEvent += new ZedGraphControl.ZedMouseEventHandler(msGraphControl_MouseDownEvent); msGraphControl.MouseMoveEvent += new ZedGraphControl.ZedMouseEventHandler(msGraphControl_MouseMoveEvent); msGraphControl.ZoomButtons = MouseButtons.Left; msGraphControl.ZoomModifierKeys = Keys.None; msGraphControl.ZoomButtons2 = MouseButtons.None; msGraphControl.UnzoomButtons = new MSGraphControl.MouseButtonClicks(MouseButtons.Middle); msGraphControl.UnzoomModifierKeys = Keys.None; msGraphControl.UnzoomButtons2 = new MSGraphControl.MouseButtonClicks(MouseButtons.None); msGraphControl.UnzoomAllButtons = new MSGraphControl.MouseButtonClicks(MouseButtons.Left, 2); msGraphControl.UnzoomAllButtons2 = new MSGraphControl.MouseButtonClicks(MouseButtons.None); msGraphControl.PanButtons = MouseButtons.Left; msGraphControl.PanModifierKeys = Keys.Control; msGraphControl.PanButtons2 = MouseButtons.None; msGraphControl.ContextMenuBuilder += new MSGraphControl.ContextMenuBuilderEventHandler(GraphForm_ContextMenuBuilder); msGraphControl.GraphPane.YAxis.ScaleFormatEvent += YAxis_ScaleFormatEvent; ContextMenuStrip dummyMenu = new ContextMenuStrip(); dummyMenu.Opening += new CancelEventHandler(foo_Opening); TabPageContextMenuStrip = dummyMenu; }
void GraphForm_StackLayoutGrid(object sender, EventArgs e) { PaneListLayout = PaneLayout.ForceSquare; }
void GraphForm_StackLayoutSingleRow(object sender, EventArgs e) { PaneListLayout = PaneLayout.SingleRow; }