Exemple #1
0
        public LateGraphView(Window parent)
            : base(parent, (int)MenuIDs2.wxID_ANY, new Point(0, 0), new Size(Configuration.XMAX * 2 + Configuration.STATION_WIDTH + Configuration.KM_WIDTH, Configuration.YMAX))
        {
            EVT_PAINT(new EventListener(OnPaint));


            SetScrollbars(1, 1, Configuration.XMAX * 2 + Configuration.STATION_WIDTH + Configuration.KM_WIDTH, Configuration.YMAX);
            grid g = new grid(this, Configuration.XMAX * 2 + Configuration.STATION_WIDTH + Configuration.KM_WIDTH, Configuration.YMAX);

            GlobalVariables.late_graph_grid = g;
            g.Clear();
        }
Exemple #2
0
        public PlatformGraphView(Window parent)
            : base(parent, (int)MenuIDs2.wxID_ANY, new Point(0, 0), new Size(Configuration.XMAX * 2 + Configuration.STATION_WIDTH + Configuration.KM_WIDTH, Configuration.YMAX))
        {
            {
                EVT_MOTION(new EventListener(OnMouseMove));
                EVT_PAINT(new EventListener(OnPaint));

                SetScrollbars(1, 1, Configuration.XMAX * 2 + Configuration.STATION_WIDTH + Configuration.KM_WIDTH, Configuration.YMAX);
                grid g = new grid(this, Configuration.XMAX * 2 + Configuration.STATION_WIDTH + Configuration.KM_WIDTH, Configuration.YMAX);

                GlobalVariables.platform_graph_grid = g;
                m_tooltip = null;
                // wxToolTip::SetDelay(1000);
                // wxToolTip::Enable(true);
                g.Clear();
            }
        }