- Timestamp:
- 03/31/11 13:07:29 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Data.Views/3.3/StringConvertibleValueView.cs
r5891 r5908 22 22 using System; 23 23 using System.ComponentModel; 24 using System.Drawing;25 24 using System.Windows.Forms; 26 25 using HeuristicLab.MainForm; … … 45 44 46 45 public bool LabelVisible { 47 get { return valueLabel.Visible; }48 set { valueLabel.Visible =value; }46 get { return !splitContainer.Panel1Collapsed; } 47 set { splitContainer.Panel1Collapsed = !value; } 49 48 } 50 49 … … 92 91 if (e.KeyCode == Keys.Escape) { 93 92 valueTextBox.Text = Content.GetValue(); 94 valueLabel. Select(); // select label to validate data93 valueLabel.Focus(); // select label to validate data 95 94 } 96 95 } … … 108 107 valueTextBox.Text = Content.GetValue(); 109 108 } 110 111 private void valueLabel_VisibleChanged(object sender, EventArgs e) {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 }119 }120 121 109 } 122 110 }
Note: See TracChangeset
for help on using the changeset viewer.