I created a cs file that contains a teeChart - contour- object ( Windows XP, Visual Studio 2008). Editing (right click on the object, edit, change one property) the control in design mode leads to VS to get stuck in "Not responding" mode.
Saving the file that contains the teeChart object leads to large cpu usage and eventually low memory of VS.
The teeChart version I am using is 4.0.2009.42283
Code: Select all
private void InitializeComponent()
{
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager( typeof( ContourMap ) );
this.tChart1 = new Steema.TeeChart.TChart();
this.contour1 = new Steema.TeeChart.Styles.Contour();
this.points1 = new Steema.TeeChart.Styles.Points();
this.SuspendLayout();
//
// tChart1
//
//
//
//
this.tChart1.Aspect.View3D = false;
this.tChart1.Aspect.ZOffset = 0;
//
//
//
//
//
//
//
//
//
this.tChart1.Axes.Bottom.Grid.Color = System.Drawing.Color.FromArgb( ( (int) ( ( (byte) ( 64 ) ) ) ), ( (int) ( ( (byte) ( 64 ) ) ) ), ( (int) ( ( (byte) ( 64 ) ) ) ) );
//
//
//
this.tChart1.Axes.Bottom.Labels.OnAxis = false;
this.tChart1.Axes.Bottom.Labels.RoundFirstLabel = false;
this.tChart1.Axes.Bottom.Labels.Style = Steema.TeeChart.AxisLabelStyle.Value;
this.tChart1.Axes.Bottom.Labels.ValueFormat = "0.0";
this.tChart1.Axes.Bottom.MaximumOffset = 4;
this.tChart1.Axes.Bottom.MinimumOffset = 4;
this.tChart1.Axes.Bottom.MinorTickCount = 1;
this.tChart1.Axes.Bottom.StartPosition = 3;
//
//
//
this.tChart1.Axes.Bottom.TicksInner.Visible = true;
//
//
//
this.tChart1.Axes.Bottom.Title.Transparent = true;
this.tChart1.Axes.Bottom.Title.Visible = false;
//
//
//
//
//
//
this.tChart1.Axes.Depth.Title.Transparent = true;
//
//
//
//
//
//
this.tChart1.Axes.DepthTop.Title.Transparent = true;
this.tChart1.Axes.DrawBehind = false;
//
//
//
//
//
//
this.tChart1.Axes.Left.Labels.OnAxis = false;
this.tChart1.Axes.Left.MaximumOffset = 4;
this.tChart1.Axes.Left.MinimumOffset = 4;
this.tChart1.Axes.Left.StartPosition = 3;
//
//
//
this.tChart1.Axes.Left.Title.Transparent = true;
//
//
//
//
//
//
this.tChart1.Axes.Right.Title.Transparent = true;
this.tChart1.Axes.Right.Visible = false;
//
//
//
this.tChart1.Axes.Top.Automatic = false;
this.tChart1.Axes.Top.AutomaticMaximum = false;
this.tChart1.Axes.Top.AutomaticMinimum = false;
this.tChart1.Axes.Top.Maximum = 0;
this.tChart1.Axes.Top.Minimum = 0;
//
//
//
this.tChart1.Axes.Top.Title.Transparent = true;
this.tChart1.Cursor = System.Windows.Forms.Cursors.Default;
this.tChart1.Dock = System.Windows.Forms.DockStyle.Fill;
//
//
//
this.tChart1.Header.Lines = new string[] {
"Contour map"};
//
//
//
//
//
//
//
//
//
this.tChart1.Legend.Font.Brush.Color = System.Drawing.Color.FromArgb( ( (int) ( ( (byte) ( 0 ) ) ) ), ( (int) ( ( (byte) ( 0 ) ) ) ), ( (int) ( ( (byte) ( 255 ) ) ) ) );
this.tChart1.Legend.LegendStyle = Steema.TeeChart.LegendStyles.Values;
this.tChart1.Legend.TextStyle = Steema.TeeChart.LegendTextStyles.Value;
this.tChart1.Location = new System.Drawing.Point( 0, 0 );
this.tChart1.Name = "tChart1";
this.tChart1.Series.Add( this.contour1 );
this.tChart1.Series.Add( this.points1 );
this.tChart1.Size = new System.Drawing.Size( 813, 807 );
this.tChart1.TabIndex = 0;
//
// contour1
//
//
//
//
this.contour1.Brush.Color = System.Drawing.Color.FromArgb( ( (int) ( ( (byte) ( 68 ) ) ) ), ( (int) ( ( (byte) ( 102 ) ) ) ), ( (int) ( ( (byte) ( 163 ) ) ) ) );
this.contour1.Brush.Visible = false;
this.contour1.Color = System.Drawing.Color.FromArgb( ( (int) ( ( (byte) ( 68 ) ) ) ), ( (int) ( ( (byte) ( 102 ) ) ) ), ( (int) ( ( (byte) ( 163 ) ) ) ) );
this.contour1.ColorEach = false;
this.contour1.Cursor = System.Windows.Forms.Cursors.No;
this.contour1.EndColor = System.Drawing.Color.FromArgb( ( (int) ( ( (byte) ( 255 ) ) ) ), ( (int) ( ( (byte) ( 0 ) ) ) ), ( (int) ( ( (byte) ( 0 ) ) ) ) );
this.contour1.IrregularGrid = true;
//
//
//
//
//
//
this.contour1.Marks.Bevel.ColorTwo = System.Drawing.Color.FromArgb( ( (int) ( ( (byte) ( 128 ) ) ) ), ( (int) ( ( (byte) ( 128 ) ) ) ), ( (int) ( ( (byte) ( 128 ) ) ) ) );
//
//
//
this.contour1.Marks.Brush.Visible = false;
//
//
//
this.contour1.Marks.Callout.ArrowHead = Steema.TeeChart.Styles.ArrowHeadStyles.None;
this.contour1.Marks.Callout.ArrowHeadSize = 8;
//
//
//
this.contour1.Marks.Callout.Brush.Color = System.Drawing.Color.Black;
this.contour1.Marks.Callout.Distance = 0;
this.contour1.Marks.Callout.Draw3D = false;
this.contour1.Marks.Callout.Length = 10;
this.contour1.Marks.Callout.Series = this.contour1;
this.contour1.Marks.Callout.Style = Steema.TeeChart.Styles.PointerStyles.Rectangle;
this.contour1.Marks.Callout.Visible = false;
this.contour1.Marks.DrawEvery = 3;
this.contour1.Marks.Series = this.contour1;
this.contour1.Marks.Transparent = true;
this.contour1.Marks.Visible = true;
this.contour1.MidColor = System.Drawing.Color.FromArgb( ( (int) ( ( (byte) ( 128 ) ) ) ), ( (int) ( ( (byte) ( 0 ) ) ) ), ( (int) ( ( (byte) ( 128 ) ) ) ) );
this.contour1.NumLevels = 12;
this.contour1.NumXValues = 490;
this.contour1.NumZValues = 490;
this.contour1.PaletteMin = 0;
this.contour1.PaletteStep = 0;
this.contour1.PaletteSteps = 12;
this.contour1.PaletteStyle = Steema.TeeChart.Styles.PaletteStyles.Pale;
//
//
//
this.contour1.Pen.Color = System.Drawing.Color.FromArgb( ( (int) ( ( (byte) ( 255 ) ) ) ), ( (int) ( ( (byte) ( 255 ) ) ) ), ( (int) ( ( (byte) ( 255 ) ) ) ) );
//
//
//
this.contour1.Pointer.HorizSize = 2;
//
//
//
this.contour1.Pointer.Pen.Visible = false;
this.contour1.Pointer.Series = this.contour1;
this.contour1.Pointer.Style = Steema.TeeChart.Styles.PointerStyles.Rectangle;
this.contour1.Pointer.VertSize = 2;
this.contour1.Pointer.Visible = false;
this.contour1.StartColor = System.Drawing.Color.FromArgb( ( (int) ( ( (byte) ( 0 ) ) ) ), ( (int) ( ( (byte) ( 0 ) ) ) ), ( (int) ( ( (byte) ( 255 ) ) ) ) );
this.contour1.TimesZOrder = 5;
this.contour1.Title = "contour1";
this.contour1.ValueFormat = "0.0";
//
//
//
this.contour1.XValues.DataMember = "X";
this.contour1.YPosition = 0.20322339899792125;
//
//
//
this.contour1.YValues.DataMember = "Y";
//
//
//
this.contour1.ZValues.DataMember = "Z";
//
// points1
//
this.points1.Color = System.Drawing.Color.FromArgb( ( (int) ( ( (byte) ( 255 ) ) ) ), ( (int) ( ( (byte) ( 128 ) ) ) ), ( (int) ( ( (byte) ( 0 ) ) ) ) );
this.points1.ColorEach = false;
this.points1.Cursor = System.Windows.Forms.Cursors.SizeAll;
this.points1.Depth = 0;
//
//
//
this.points1.LinePen.Color = System.Drawing.Color.FromArgb( ( (int) ( ( (byte) ( 146 ) ) ) ), ( (int) ( ( (byte) ( 94 ) ) ) ), ( (int) ( ( (byte) ( 32 ) ) ) ) );
//
//
//
this.points1.Marks.ArrowLength = 9;
//
//
//
this.points1.Marks.Bevel.ColorOne = System.Drawing.Color.FromArgb( ( (int) ( ( (byte) ( 0 ) ) ) ), ( (int) ( ( (byte) ( 0 ) ) ) ), ( (int) ( ( (byte) ( 0 ) ) ) ) );
this.points1.Marks.Bevel.ColorTwo = System.Drawing.Color.FromArgb( ( (int) ( ( (byte) ( 255 ) ) ) ), ( (int) ( ( (byte) ( 0 ) ) ) ), ( (int) ( ( (byte) ( 0 ) ) ) ) );
//
//
//
this.points1.Marks.Brush.Color = System.Drawing.Color.FromArgb( ( (int) ( ( (byte) ( 255 ) ) ) ), ( (int) ( ( (byte) ( 255 ) ) ) ), ( (int) ( ( (byte) ( 255 ) ) ) ) );
this.points1.Marks.Brush.Visible = false;
//
//
//
this.points1.Marks.Callout.ArrowHead = Steema.TeeChart.Styles.ArrowHeadStyles.None;
this.points1.Marks.Callout.ArrowHeadSize = 8;
//
//
//
this.points1.Marks.Callout.Brush.Color = System.Drawing.Color.Black;
this.points1.Marks.Callout.Dark3D = false;
this.points1.Marks.Callout.Distance = 0;
this.points1.Marks.Callout.Draw3D = false;
this.points1.Marks.Callout.InflateMargins = false;
this.points1.Marks.Callout.Length = 9;
this.points1.Marks.Callout.Series = this.points1;
this.points1.Marks.Callout.Style = Steema.TeeChart.Styles.PointerStyles.Rectangle;
this.points1.Marks.Callout.Visible = false;
//
//
//
//
//
//
//
//
//
this.points1.Marks.Font.Shadow.Brush.Color = System.Drawing.Color.FromArgb( ( (int) ( ( (byte) ( 255 ) ) ) ), ( (int) ( ( (byte) ( 255 ) ) ) ), ( (int) ( ( (byte) ( 255 ) ) ) ) );
this.points1.Marks.Font.Shadow.Smooth = true;
this.points1.Marks.Font.Shadow.SmoothBlur = 9;
//
//
//
this.points1.Marks.Pen.Visible = false;
this.points1.Marks.Series = this.points1;
//
//
//
this.points1.Marks.Shadow.Visible = false;
this.points1.Marks.ShapeStyle = Steema.TeeChart.Drawing.TextShapeStyle.RoundRectangle;
//
//
//
//
//
//
//
//
//
this.points1.Marks.Symbol.Brush.Gradient.StartColor = System.Drawing.Color.FromArgb( ( (int) ( ( (byte) ( 255 ) ) ) ), ( (int) ( ( (byte) ( 255 ) ) ) ), ( (int) ( ( (byte) ( 255 ) ) ) ) );
this.points1.Marks.Symbol.Brush.Gradient.Visible = true;
//
//
//
this.points1.Marks.Symbol.Shadow.Visible = false;
this.points1.Marks.Transparent = true;
this.points1.Marks.Visible = true;
this.points1.PercentFormat = "";
//
//
//
//
//
//
this.points1.Pointer.Brush.Color = System.Drawing.Color.FromArgb( ( (int) ( ( (byte) ( 255 ) ) ) ), ( (int) ( ( (byte) ( 128 ) ) ) ), ( (int) ( ( (byte) ( 0 ) ) ) ) );
this.points1.Pointer.Brush.ForegroundColor = System.Drawing.Color.Empty;
//
//
//
this.points1.Pointer.Brush.Gradient.StartColor = System.Drawing.Color.FromArgb( ( (int) ( ( (byte) ( 243 ) ) ) ), ( (int) ( ( (byte) ( 156 ) ) ) ), ( (int) ( ( (byte) ( 53 ) ) ) ) );
this.points1.Pointer.Dark3D = false;
this.points1.Pointer.Draw3D = false;
this.points1.Pointer.HorizSize = 3;
//
//
//
this.points1.Pointer.Pen.Color = System.Drawing.Color.FromArgb( ( (int) ( ( (byte) ( 255 ) ) ) ), ( (int) ( ( (byte) ( 128 ) ) ) ), ( (int) ( ( (byte) ( 0 ) ) ) ) );
this.points1.Pointer.Series = this.points1;
this.points1.Pointer.Style = Steema.TeeChart.Styles.PointerStyles.Circle;
this.points1.Pointer.VertSize = 3;
this.points1.ShowInLegend = false;
this.points1.Title = "points1";
this.points1.TreatNulls = Steema.TeeChart.Styles.TreatNullsStyle.Ignore;
//
//
//
this.points1.XValues.DataMember = "X";
this.points1.XValues.Order = Steema.TeeChart.Styles.ValueListOrder.Ascending;
//
//
//
this.points1.YValues.DataMember = "Y";
//
// ContourMap
//
this.Controls.Add( this.tChart1 );
this.Name = "ContourMap";
this.Size = new System.Drawing.Size( 813, 807 );
this.ResumeLayout( false );
Stephan