예제 #1
0
파일: GraphForm.cs 프로젝트: zrolfs/pwiz
        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;
        }
예제 #2
0
파일: GraphForm.cs 프로젝트: zjjyyang/ftdr
 void GraphForm_StackLayoutGrid(object sender, EventArgs e)
 {
     PaneListLayout = PaneLayout.ForceSquare;
 }
예제 #3
0
파일: GraphForm.cs 프로젝트: zjjyyang/ftdr
 void GraphForm_StackLayoutSingleRow(object sender, EventArgs e)
 {
     PaneListLayout = PaneLayout.SingleRow;
 }