Changeset 14984
- Timestamp:
- 05/15/17 16:48:07 (8 years ago)
- Location:
- trunk/sources/HeuristicLab.Analysis.Views/3.3
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Analysis.Views/3.3/ScatterPlotDataRowVisualPropertiesControl.Designer.cs
r14493 r14984 65 65 this.regressionLegendTextBox = new System.Windows.Forms.TextBox(); 66 66 this.toolTip = new System.Windows.Forms.ToolTip(this.components); 67 this.clearColorButton = new System.Windows.Forms.Button(); 67 68 ((System.ComponentModel.ISupportInitialize)(this.pointSizeNumericUpDown)).BeginInit(); 68 69 this.regressionGroupBox.SuspendLayout(); … … 278 279 this.regressionLegendTextBox.Validated += new System.EventHandler(this.regressionLegendTextBox_Validated); 279 280 // 281 // clearColorButton 282 // 283 this.clearColorButton.BackColor = System.Drawing.SystemColors.ActiveCaption; 284 this.clearColorButton.Cursor = System.Windows.Forms.Cursors.Default; 285 this.clearColorButton.FlatAppearance.BorderSize = 0; 286 this.clearColorButton.FlatStyle = System.Windows.Forms.FlatStyle.Flat; 287 this.clearColorButton.ForeColor = System.Drawing.Color.Transparent; 288 this.clearColorButton.Location = new System.Drawing.Point(125, 65); 289 this.clearColorButton.Margin = new System.Windows.Forms.Padding(0); 290 this.clearColorButton.Name = "clearColorButton"; 291 this.clearColorButton.Size = new System.Drawing.Size(15, 16); 292 this.clearColorButton.TabIndex = 11; 293 this.clearColorButton.TabStop = false; 294 this.clearColorButton.UseVisualStyleBackColor = false; 295 this.clearColorButton.Click += new System.EventHandler(this.clearColorButton_Click); 296 // 280 297 // ScatterPlotDataRowVisualPropertiesControl 281 298 // 282 299 this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Inherit; 300 this.Controls.Add(this.clearColorButton); 283 301 this.Controls.Add(this.regressionGroupBox); 284 302 this.Controls.Add(this.pointSizeNumericUpDown); … … 324 342 private System.Windows.Forms.ToolTip toolTip; 325 343 private System.Windows.Forms.CheckBox isRegressionVisibleInLegendCheckBox; 344 private System.Windows.Forms.Button clearColorButton; 326 345 } 327 346 } -
trunk/sources/HeuristicLab.Analysis.Views/3.3/ScatterPlotDataRowVisualPropertiesControl.cs
r14493 r14984 23 23 using System.Drawing; 24 24 using System.Windows.Forms; 25 using HeuristicLab.Common.Resources; 25 26 using HeuristicLab.MainForm; 26 27 using HeuristicLab.MainForm.WindowsForms; … … 45 46 pointStyleComboBox.DataSource = Enum.GetValues(typeof(ScatterPlotDataRowVisualProperties.ScatterPlotDataRowPointStyle)); 46 47 regressionTypeComboBox.DataSource = Enum.GetValues(typeof(ScatterPlotDataRowVisualProperties.ScatterPlotDataRowRegressionType)); 48 clearColorButton.BackColor = Color.Transparent; 49 clearColorButton.BackgroundImage = VSImageLibrary.Delete; 47 50 SetEnabledStateOfControls(); 48 51 } … … 87 90 pointStyleComboBox.Enabled = Content != null; 88 91 colorButton.Enabled = Content != null; 89 c olorButton.Enabled = Content != null;92 clearColorButton.Visible = Content != null && !Content.Color.IsEmpty; 90 93 isVisibleInLegendCheckBox.Enabled = Content != null; 91 94 pointSizeNumericUpDown.Enabled = Content != null; … … 111 114 colorButton.BackColor = Content.Color; 112 115 colorButton.Text = String.Empty; 116 clearColorButton.Visible = true; 117 } 118 } 119 120 private void clearColorButton_Click(object sender, EventArgs e) { 121 if (!SuppressEvents && Content != null) { 122 Content.Color = Color.Empty; 123 colorButton.BackColor = SystemColors.Control; 124 colorButton.Text = "?"; 125 clearColorButton.Visible = false; 113 126 } 114 127 }
Note: See TracChangeset
for help on using the changeset viewer.