Beispiel #1
0
        protected QGraphControl(PaneGenerator makePane)
        {
            IsShowHScrollBar = false;
            IsEnableHPan     = false;
            IsEnableVPan     = false;

            IsEnableHZoom       = false;
            IsEnableVZoom       = false;
            IsZoomOnMouseCenter = false;

            IsSynchronizeXAxes = false;
            MouseLeave        += endTrackingMouse;
            MouseMove         += updateMouse;

            this.makePane       = makePane;
            ContextMenuBuilder += addContextMenuItems;
            initVirtualCallInConstructor();

            MasterPane.PaneList.Clear();
            panes[MAIN] = makePane(this);
            MasterPane.PaneList.Add(mainPane());
        }
Beispiel #2
0
        protected QDateGraphControl(PaneGenerator makePane) : base(makePane)
        {
            IsShowHScrollBar = true;
            IsEnableHPan     = true;

            IsEnableHZoom       = true;
            IsZoomOnMouseCenter = true;
            ZoomButtons         = MouseButtons.Left;
            ZoomModifierKeys    = Keys.Control;
            PanButtons          = MouseButtons.Left;
            PanModifierKeys     = Keys.None;

            IsSynchronizeXAxes   = true;
            ScrollProgressEvent += scrollProgress;
            ZoomEvent           += zoomed;
            PointValueEvent     += tooltip;

            Resize += (s, e) => { if (hasValidated)
                                  {
                                      return;
                                  }
                                  hasValidated = true; resetYAxis(); Invalidate(); };
        }