Changeset 5891
- Timestamp:
- 03/30/11 15:38:24 (14 years ago)
- Location:
- trunk/sources/HeuristicLab.Data.Views/3.3
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Data.Views/3.3/DoubleRangeView.Designer.cs
r5809 r5891 46 46 this.SuspendLayout(); 47 47 // 48 // Item1View 49 // 50 this.Item1View.Location = new System.Drawing.Point(41, 3); 51 this.Item1View.Size = new System.Drawing.Size(264, 22); 52 // 53 // Item2View 54 // 55 this.Item2View.Location = new System.Drawing.Point(41, 31); 56 this.Item2View.Size = new System.Drawing.Size(264, 22); 57 // 48 58 // Item1Label 49 59 // -
trunk/sources/HeuristicLab.Data.Views/3.3/IntRangeView.Designer.cs
r5809 r5891 46 46 this.SuspendLayout(); 47 47 // 48 // Item1View 49 // 50 this.Item1View.Location = new System.Drawing.Point(41, 3); 51 this.Item1View.Size = new System.Drawing.Size(264, 22); 52 // 53 // Item2View 54 // 55 this.Item2View.Location = new System.Drawing.Point(41, 31); 56 this.Item2View.Size = new System.Drawing.Size(264, 22); 57 // 48 58 // Item1Label 49 59 // … … 62 72 this.ResumeLayout(false); 63 73 this.PerformLayout(); 74 64 75 } 65 76 -
trunk/sources/HeuristicLab.Data.Views/3.3/StringConvertibleValueTupleView.Designer.cs
r5809 r5891 94 94 this.Item2Label.Text = "Item2:"; 95 95 // 96 // ValueTypeTupleView96 // StringConvertibleValueTupleView 97 97 // 98 98 this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); 99 99 this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; 100 this.Controls.Add(this.Item1Label); 100 101 this.Controls.Add(this.Item2Label); 101 this.Controls.Add(this.Item1 Label);102 this.Controls.Add(this.Item1View); 102 103 this.Controls.Add(this.Item2View); 103 this.Controls.Add(this.Item1View); 104 this.Name = "ValueTypeTupleView"; 104 this.Name = "StringConvertibleValueTupleView"; 105 105 this.Size = new System.Drawing.Size(308, 56); 106 106 this.ResumeLayout(false); 107 107 this.PerformLayout(); 108 109 108 } 110 109 -
trunk/sources/HeuristicLab.Data.Views/3.3/StringConvertibleValueView.cs
r5445 r5891 22 22 using System; 23 23 using System.ComponentModel; 24 using System.Drawing; 24 25 using System.Windows.Forms; 25 26 using HeuristicLab.MainForm; … … 87 88 private void valueTextBox_KeyDown(object sender, KeyEventArgs e) { 88 89 if ((e.KeyCode == Keys.Enter) || (e.KeyCode == Keys.Return)) 89 valueLabel.Focus(); // set focus on label to validate data 90 valueLabel.Select(); // select label to validate data 91 90 92 if (e.KeyCode == Keys.Escape) { 91 93 valueTextBox.Text = Content.GetValue(); 92 valueLabel. Focus(); // set focus onlabel to validate data94 valueLabel.Select(); // select label to validate data 93 95 } 94 96 } … … 108 110 109 111 private void valueLabel_VisibleChanged(object sender, EventArgs e) { 110 if (valueLabel.Visible) 111 valueTextBox.Dock = DockStyle.None; 112 else 113 valueTextBox.Dock = DockStyle.Fill; 112 if (valueLabel.Visible) { 113 valueTextBox.Location = new Point(56, 0); 114 valueTextBox.Size = new Size(valueTextBox.Size.Width - valueLabel.Size.Width, valueTextBox.Size.Height); 115 } else { 116 valueTextBox.Location = new Point(19, 0); 117 valueTextBox.Size = new Size(valueTextBox.Size.Width + valueLabel.Size.Width, valueTextBox.Size.Height); 118 } 114 119 } 115 120
Note: See TracChangeset
for help on using the changeset viewer.