コード例 #1
0
ファイル: PerfChart.cs プロジェクト: aracosta1/rt-chart
        public PerfChart()
        {
            InitializeComponent();

            // Initialize Variables
            perfChartStyle = new PerfChartStyle();

            perfChartPenStyles    = new PerfChartPenStyle[4];
            perfChartPenStyles[0] = new PerfChartPenStyle();
            perfChartPenStyles[1] = new PerfChartPenStyle();
            perfChartPenStyles[2] = new PerfChartPenStyle();
            perfChartPenStyles[3] = new PerfChartPenStyle();

            chartSize     = 500;
            drawValues    = new List <DataSample>(chartSize);
            waitingValues = new ConcurrentQueue <DataSample>();

            // Set Optimized Double Buffer to reduce flickering
            this.SetStyle(ControlStyles.UserPaint, true);
            this.SetStyle(ControlStyles.AllPaintingInWmPaint, true);
            this.SetStyle(ControlStyles.OptimizedDoubleBuffer, true);

            // Redraw when resized
            this.SetStyle(ControlStyles.ResizeRedraw, true);

            this.Font = SystemInformation.MenuFont;
        }
コード例 #2
0
ファイル: PerfChart.cs プロジェクト: fr830/daq-1
        public PerfChart()
        {
            InitializeComponent();

            // Initialize Variables
            perfChartStyle = new PerfChartStyle();

            // Set Optimized Double Buffer to reduce flickering
            this.SetStyle(ControlStyles.UserPaint, true);
            this.SetStyle(ControlStyles.AllPaintingInWmPaint, true);
            this.SetStyle(ControlStyles.OptimizedDoubleBuffer, true);

            // Redraw when resized
            this.SetStyle(ControlStyles.ResizeRedraw, true);

            this.Font = SystemInformation.MenuFont;
        }
コード例 #3
0
        public PerfChart() {
            InitializeComponent();

            // Initialize Variables
            perfChartStyle = new PerfChartStyle();

            // Set Optimized Double Buffer to reduce flickering
//HGO            this.SetStyle(ControlStyles.UserPaint, true);
//HGO            this.SetStyle(ControlStyles.AllPaintingInWmPaint, true);
//HGO            this.SetStyle(ControlStyles.OptimizedDoubleBuffer, true);

            // Redraw when resized
//HGO            this.SetStyle(ControlStyles.ResizeRedraw, true);

//HGO            this.Font = SystemInformation.MenuFont;
        }
コード例 #4
0
ファイル: SpPerfChart.cs プロジェクト: dan-sw/PTP_GUI
        public SpPerfChart()
        {
            InitializeComponent();
            // Initialize Variables
            perfChartStyle = new PerfChartStyle();

            // Set Optimized Double Buffer to reduce flickering
            this.SetStyle(ControlStyles.UserPaint, true);
            this.SetStyle(ControlStyles.AllPaintingInWmPaint, true);
            this.SetStyle(ControlStyles.OptimizedDoubleBuffer, true);

            // Redraw when resized
            this.SetStyle(ControlStyles.ResizeRedraw, true);

            this.Font = SystemInformation.MenuFont;

            // Adjust drawing surface for Border
            // Draw the background Gradient rectangle
            calculateSurfaceRectangle();
        }