private void ChartCursorSelected(Chart sender, ChartCursor e) { txtChartSelect.Text = e.XFormattedString + ", " + e.YFormattedString; //e.X.ToString("F4") + ", " + e.Y.ToString("F4"); PointF diff = sender.CursorsDiff(); txtCursorDelta.Text = diff.X.ToString("F4") + ", " + diff.Y.ToString("F4"); }
private void ChartCursorSelected(Chart sender, ChartCursor e) { txtChartSelect.Text = e.X.ToString("F4") + ", " + e.Y.ToString("F4"); Debug.WriteLine("Cursor Position: " + txtChartSelect.Text + " @ " + e.ChartArea.Name); PointF diff = sender.CursorsDiff(); txtCursorDelta.Text = diff.X.ToString("F4") + ", " + diff.Y.ToString("F4"); }
private void cursorMoved(Chart sender, ChartCursor cursor) { }
private void selectionChanged(Chart sender, ChartCursor cursor) { }
private void ChartCursorMoved(Chart sender, ChartCursor e) { txtChartValue.Text = e.X.ToString("F4") + ", " + e.Y.ToString("F4"); }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { this.tChart_Spectrum = new Steema.TeeChart.TChart(); this.SuspendLayout(); // // tChart_Spectrum // // // // this.tChart_Spectrum.Aspect.View3D = false; // // // // // // // // // this.tChart_Spectrum.Axes.Bottom.AxisPen.Color = System.Drawing.Color.FromArgb(((int)(((byte)(130)))), ((int)(((byte)(130)))), ((int)(((byte)(130))))); // // // this.tChart_Spectrum.Axes.Bottom.Grid.Color = System.Drawing.Color.FromArgb(((int)(((byte)(130)))), ((int)(((byte)(130)))), ((int)(((byte)(130))))); this.tChart_Spectrum.Axes.Bottom.Grid.Style = System.Drawing.Drawing2D.DashStyle.Solid; // // // // // // // // // this.tChart_Spectrum.Axes.Bottom.Labels.Font.Brush.Color = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(255))))); // // // this.tChart_Spectrum.Axes.Bottom.MinorTicks.Visible = false; // // // this.tChart_Spectrum.Axes.Bottom.Ticks.Color = System.Drawing.Color.FromArgb(((int)(((byte)(130)))), ((int)(((byte)(130)))), ((int)(((byte)(130))))); // // // // // // this.tChart_Spectrum.Axes.Depth.AxisPen.Color = System.Drawing.Color.FromArgb(((int)(((byte)(130)))), ((int)(((byte)(130)))), ((int)(((byte)(130))))); // // // this.tChart_Spectrum.Axes.Depth.Grid.Color = System.Drawing.Color.FromArgb(((int)(((byte)(130)))), ((int)(((byte)(130)))), ((int)(((byte)(130))))); this.tChart_Spectrum.Axes.Depth.Grid.Style = System.Drawing.Drawing2D.DashStyle.Solid; // // // // // // // // // this.tChart_Spectrum.Axes.Depth.Labels.Font.Brush.Color = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(255))))); // // // this.tChart_Spectrum.Axes.Depth.MinorTicks.Visible = false; // // // this.tChart_Spectrum.Axes.Depth.Ticks.Color = System.Drawing.Color.FromArgb(((int)(((byte)(130)))), ((int)(((byte)(130)))), ((int)(((byte)(130))))); // // // // // // this.tChart_Spectrum.Axes.DepthTop.AxisPen.Color = System.Drawing.Color.FromArgb(((int)(((byte)(130)))), ((int)(((byte)(130)))), ((int)(((byte)(130))))); // // // this.tChart_Spectrum.Axes.DepthTop.Grid.Color = System.Drawing.Color.FromArgb(((int)(((byte)(130)))), ((int)(((byte)(130)))), ((int)(((byte)(130))))); this.tChart_Spectrum.Axes.DepthTop.Grid.Style = System.Drawing.Drawing2D.DashStyle.Solid; // // // // // // // // // this.tChart_Spectrum.Axes.DepthTop.Labels.Font.Brush.Color = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(255))))); // // // this.tChart_Spectrum.Axes.DepthTop.MinorTicks.Visible = false; // // // this.tChart_Spectrum.Axes.DepthTop.Ticks.Color = System.Drawing.Color.FromArgb(((int)(((byte)(130)))), ((int)(((byte)(130)))), ((int)(((byte)(130))))); // // // // // // this.tChart_Spectrum.Axes.Left.AxisPen.Color = System.Drawing.Color.FromArgb(((int)(((byte)(130)))), ((int)(((byte)(130)))), ((int)(((byte)(130))))); // // // this.tChart_Spectrum.Axes.Left.Grid.Color = System.Drawing.Color.FromArgb(((int)(((byte)(130)))), ((int)(((byte)(130)))), ((int)(((byte)(130))))); this.tChart_Spectrum.Axes.Left.Grid.Style = System.Drawing.Drawing2D.DashStyle.Solid; // // // // // // // // // this.tChart_Spectrum.Axes.Left.Labels.Font.Brush.Color = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(255))))); // // // this.tChart_Spectrum.Axes.Left.MinorTicks.Visible = false; // // // this.tChart_Spectrum.Axes.Left.Ticks.Color = System.Drawing.Color.FromArgb(((int)(((byte)(130)))), ((int)(((byte)(130)))), ((int)(((byte)(130))))); // // // // // // this.tChart_Spectrum.Axes.Right.AxisPen.Color = System.Drawing.Color.FromArgb(((int)(((byte)(130)))), ((int)(((byte)(130)))), ((int)(((byte)(130))))); // // // this.tChart_Spectrum.Axes.Right.Grid.Color = System.Drawing.Color.FromArgb(((int)(((byte)(130)))), ((int)(((byte)(130)))), ((int)(((byte)(130))))); this.tChart_Spectrum.Axes.Right.Grid.Style = System.Drawing.Drawing2D.DashStyle.Solid; // // // // // // // // // this.tChart_Spectrum.Axes.Right.Labels.Font.Brush.Color = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(255))))); // // // this.tChart_Spectrum.Axes.Right.MinorTicks.Visible = false; // // // this.tChart_Spectrum.Axes.Right.Ticks.Color = System.Drawing.Color.FromArgb(((int)(((byte)(130)))), ((int)(((byte)(130)))), ((int)(((byte)(130))))); // // // // // // this.tChart_Spectrum.Axes.Top.AxisPen.Color = System.Drawing.Color.FromArgb(((int)(((byte)(130)))), ((int)(((byte)(130)))), ((int)(((byte)(130))))); // // // this.tChart_Spectrum.Axes.Top.Grid.Color = System.Drawing.Color.FromArgb(((int)(((byte)(130)))), ((int)(((byte)(130)))), ((int)(((byte)(130))))); this.tChart_Spectrum.Axes.Top.Grid.Style = System.Drawing.Drawing2D.DashStyle.Solid; // // // // // // // // // this.tChart_Spectrum.Axes.Top.Labels.Font.Brush.Color = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(255))))); // // // this.tChart_Spectrum.Axes.Top.MinorTicks.Visible = false; // // // this.tChart_Spectrum.Axes.Top.Ticks.Color = System.Drawing.Color.FromArgb(((int)(((byte)(130)))), ((int)(((byte)(130)))), ((int)(((byte)(130))))); this.tChart_Spectrum.Cursor = System.Windows.Forms.Cursors.Default; this.tChart_Spectrum.Dock = System.Windows.Forms.DockStyle.Fill; // // // // // // // // // this.tChart_Spectrum.Header.Brush.Gradient.EndColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(0))))); this.tChart_Spectrum.Header.Brush.Gradient.MiddleColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0))))); this.tChart_Spectrum.Header.Brush.Gradient.SigmaFocus = 0F; this.tChart_Spectrum.Header.Brush.Gradient.SigmaScale = 0F; this.tChart_Spectrum.Header.Brush.Gradient.StartColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(255))))); // // // // // // this.tChart_Spectrum.Header.Font.Brush.Color = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(255))))); // // // this.tChart_Spectrum.Header.Shadow.Height = 0; this.tChart_Spectrum.Header.Shadow.Width = 0; this.tChart_Spectrum.Header.Visible = false; // // // // // // // // // this.tChart_Spectrum.Legend.Brush.Gradient.EndColor = System.Drawing.Color.FromArgb(((int)(((byte)(120)))), ((int)(((byte)(120)))), ((int)(((byte)(120))))); this.tChart_Spectrum.Legend.Brush.Gradient.MiddleColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0))))); this.tChart_Spectrum.Legend.Brush.Gradient.SigmaFocus = 0F; this.tChart_Spectrum.Legend.Brush.Gradient.SigmaScale = 0F; this.tChart_Spectrum.Legend.Brush.Gradient.StartColor = System.Drawing.Color.FromArgb(((int)(((byte)(70)))), ((int)(((byte)(70)))), ((int)(((byte)(70))))); this.tChart_Spectrum.Legend.Brush.Gradient.Visible = true; this.tChart_Spectrum.Legend.CheckBoxes = true; // // // // // // this.tChart_Spectrum.Legend.Font.Brush.Color = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(255))))); this.tChart_Spectrum.Legend.LegendStyle = Steema.TeeChart.LegendStyles.Series; // // // this.tChart_Spectrum.Legend.Pen.Visible = false; // // // this.tChart_Spectrum.Legend.Shadow.Width = 0; this.tChart_Spectrum.Legend.TextSymbolGap = 0; this.tChart_Spectrum.Location = new System.Drawing.Point(0, 0); this.tChart_Spectrum.Name = "tChart_Spectrum"; // // // // // // this.tChart_Spectrum.Panel.Bevel.Outer = Steema.TeeChart.Drawing.BevelStyles.None; this.tChart_Spectrum.Panel.Bevel.Width = 2; // // // // // // this.tChart_Spectrum.Panel.Brush.Gradient.EndColor = System.Drawing.Color.FromArgb(((int)(((byte)(70)))), ((int)(((byte)(70)))), ((int)(((byte)(70))))); this.tChart_Spectrum.Panel.Brush.Gradient.MiddleColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0))))); this.tChart_Spectrum.Panel.Brush.Gradient.SigmaFocus = 0F; this.tChart_Spectrum.Panel.Brush.Gradient.SigmaScale = 0F; this.tChart_Spectrum.Panel.Brush.Gradient.StartColor = System.Drawing.Color.FromArgb(((int)(((byte)(70)))), ((int)(((byte)(70)))), ((int)(((byte)(70))))); this.tChart_Spectrum.Panel.Brush.Gradient.UseMiddle = false; // // // this.tChart_Spectrum.Panning.Allow = Steema.TeeChart.ScrollModes.Horizontal; this.tChart_Spectrum.Size = new System.Drawing.Size(654, 307); this.tChart_Spectrum.TabIndex = 0; // // // // // // // // // // // // this.tChart_Spectrum.Walls.Back.Brush.Gradient.EndColor = System.Drawing.Color.FromArgb(((int)(((byte)(120)))), ((int)(((byte)(120)))), ((int)(((byte)(120))))); this.tChart_Spectrum.Walls.Back.Brush.Gradient.MiddleColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0))))); this.tChart_Spectrum.Walls.Back.Brush.Gradient.StartColor = System.Drawing.Color.FromArgb(((int)(((byte)(70)))), ((int)(((byte)(70)))), ((int)(((byte)(70))))); // // // this.tChart_Spectrum.Walls.Back.Pen.Visible = false; // // // // // // // // // this.tChart_Spectrum.Walls.Bottom.Brush.Gradient.EndColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(0))))); this.tChart_Spectrum.Walls.Bottom.Brush.Gradient.MiddleColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0))))); this.tChart_Spectrum.Walls.Bottom.Brush.Gradient.SigmaFocus = 0F; this.tChart_Spectrum.Walls.Bottom.Brush.Gradient.SigmaScale = 0F; this.tChart_Spectrum.Walls.Bottom.Brush.Gradient.StartColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(255))))); // // // this.tChart_Spectrum.Walls.Bottom.Pen.Visible = false; // // // // // // // // // this.tChart_Spectrum.Walls.Left.Brush.Gradient.EndColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(0))))); this.tChart_Spectrum.Walls.Left.Brush.Gradient.MiddleColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0))))); this.tChart_Spectrum.Walls.Left.Brush.Gradient.SigmaFocus = 0F; this.tChart_Spectrum.Walls.Left.Brush.Gradient.SigmaScale = 0F; this.tChart_Spectrum.Walls.Left.Brush.Gradient.StartColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(255))))); // // // this.tChart_Spectrum.Walls.Left.Pen.Visible = false; // // // // // // this.tChart_Spectrum.Walls.Right.Brush.Color = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(192)))), ((int)(((byte)(192))))); // // // this.tChart_Spectrum.Walls.Right.Brush.Gradient.EndColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(0))))); this.tChart_Spectrum.Walls.Right.Brush.Gradient.MiddleColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0))))); this.tChart_Spectrum.Walls.Right.Brush.Gradient.SigmaFocus = 0F; this.tChart_Spectrum.Walls.Right.Brush.Gradient.SigmaScale = 0F; this.tChart_Spectrum.Walls.Right.Brush.Gradient.StartColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(255))))); // // // this.tChart_Spectrum.Walls.Right.Pen.Visible = false; // // // this.tChart_Spectrum.Zoom.Direction = Steema.TeeChart.ZoomDirections.Horizontal; // // SpectrumControl // this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 14F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.Controls.Add(this.tChart_Spectrum); this.Name = "SpectrumControl"; this.Size = new System.Drawing.Size(654, 307); this.ResumeLayout(false); Cursor = new ChartCursor(tChart_Spectrum); }
private void ChartCursorMoved(Chart sender, ChartCursor e) { txtChartValue.Text = e.XFormattedString + ", " + e.YFormattedString; }
private void ChartCursorSelected(Chart sender, ChartCursor e) { txtChartSelect.Text = e.XFormattedString + ", " + e.YFormattedString; //e.X.ToString("F4") + ", " + e.Y.ToString("F4"); }
private void ChartCursorSelected(Chart sender, ChartCursor cursor) { //txtChartSelect.Text = x.ToString("F4") + ", " + y.ToString("F4"); }
private void ChartCursorMoved(Chart sender, ChartCursor cursor) { // txtChartValue.Text = x.ToString("F4") + ", " + y.ToString("F4"); }