- Timestamp:
- 03/31/11 13:07:29 (14 years ago)
- Location:
- trunk/sources/HeuristicLab.Data.Views/3.3
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Data.Views/3.3/DoubleRangeView.Designer.cs
r5891 r5908 46 46 this.SuspendLayout(); 47 47 // 48 // Item1View49 //50 this.Item1View.Location = new System.Drawing.Point(41, 3);51 this.Item1View.Size = new System.Drawing.Size(264, 22);52 //53 // Item2View54 //55 this.Item2View.Location = new System.Drawing.Point(41, 31);56 this.Item2View.Size = new System.Drawing.Size(264, 22);57 //58 48 // Item1Label 59 49 // -
trunk/sources/HeuristicLab.Data.Views/3.3/IntRangeView.Designer.cs
r5891 r5908 46 46 this.SuspendLayout(); 47 47 // 48 // Item1View49 //50 this.Item1View.Location = new System.Drawing.Point(41, 3);51 this.Item1View.Size = new System.Drawing.Size(264, 22);52 //53 // Item2View54 //55 this.Item2View.Location = new System.Drawing.Point(41, 31);56 this.Item2View.Size = new System.Drawing.Size(264, 22);57 //58 48 // Item1Label 59 49 // -
trunk/sources/HeuristicLab.Data.Views/3.3/StringConvertibleValueTupleView.Designer.cs
r5891 r5908 52 52 // Item1View 53 53 // 54 this.Item1View.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 54 this.Item1View.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 55 55 | System.Windows.Forms.AnchorStyles.Right))); 56 56 this.Item1View.Caption = "StringConvertibleValue View"; 57 57 this.Item1View.Content = null; 58 58 this.Item1View.LabelVisible = false; 59 this.Item1View.Location = new System.Drawing.Point(45, 3);59 this.Item1View.Location = new System.Drawing.Point(45, 0); 60 60 this.Item1View.Name = "Item1View"; 61 61 this.Item1View.ReadOnly = false; 62 this.Item1View.Size = new System.Drawing.Size(260, 2 2);62 this.Item1View.Size = new System.Drawing.Size(260, 20); 63 63 this.Item1View.TabIndex = 0; 64 64 // 65 65 // Item2View 66 66 // 67 this.Item2View.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 67 this.Item2View.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 68 68 | System.Windows.Forms.AnchorStyles.Right))); 69 69 this.Item2View.Caption = "StringConvertibleValue View"; 70 70 this.Item2View.Content = null; 71 71 this.Item2View.LabelVisible = false; 72 this.Item2View.Location = new System.Drawing.Point(45, 31);72 this.Item2View.Location = new System.Drawing.Point(45, 26); 73 73 this.Item2View.Name = "Item2View"; 74 74 this.Item2View.ReadOnly = false; 75 this.Item2View.Size = new System.Drawing.Size(260, 2 2);75 this.Item2View.Size = new System.Drawing.Size(260, 20); 76 76 this.Item2View.TabIndex = 1; 77 77 // … … 79 79 // 80 80 this.Item1Label.AutoSize = true; 81 this.Item1Label.Location = new System.Drawing.Point(3, 6);81 this.Item1Label.Location = new System.Drawing.Point(3, 3); 82 82 this.Item1Label.Name = "Item1Label"; 83 83 this.Item1Label.Size = new System.Drawing.Size(36, 13); … … 88 88 // 89 89 this.Item2Label.AutoSize = true; 90 this.Item2Label.Location = new System.Drawing.Point(3, 34);90 this.Item2Label.Location = new System.Drawing.Point(3, 29); 91 91 this.Item2Label.Name = "Item2Label"; 92 92 this.Item2Label.Size = new System.Drawing.Size(36, 13); … … 103 103 this.Controls.Add(this.Item2View); 104 104 this.Name = "StringConvertibleValueTupleView"; 105 this.Size = new System.Drawing.Size(308, 56);105 this.Size = new System.Drawing.Size(308, 47); 106 106 this.ResumeLayout(false); 107 107 this.PerformLayout(); 108 108 109 } 109 110 -
trunk/sources/HeuristicLab.Data.Views/3.3/StringConvertibleValueView.Designer.cs
r5445 r5908 49 49 this.errorProvider = new System.Windows.Forms.ErrorProvider(this.components); 50 50 this.valueLabel = new System.Windows.Forms.Label(); 51 this.splitContainer = new System.Windows.Forms.SplitContainer(); 51 52 ((System.ComponentModel.ISupportInitialize)(this.errorProvider)).BeginInit(); 53 ((System.ComponentModel.ISupportInitialize)(this.splitContainer)).BeginInit(); 54 this.splitContainer.Panel1.SuspendLayout(); 55 this.splitContainer.Panel2.SuspendLayout(); 56 this.splitContainer.SuspendLayout(); 52 57 this.SuspendLayout(); 53 58 // 54 59 // valueTextBox 55 60 // 56 this.valueTextBox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 57 58 this.valueTextBox.Location = new System.Drawing.Point( 56, 0);61 this.valueTextBox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 62 | System.Windows.Forms.AnchorStyles.Right))); 63 this.valueTextBox.Location = new System.Drawing.Point(17, 0); 59 64 this.valueTextBox.Name = "valueTextBox"; 60 this.valueTextBox.Size = new System.Drawing.Size(1 94, 20);65 this.valueTextBox.Size = new System.Drawing.Size(135, 20); 61 66 this.valueTextBox.TabIndex = 1; 62 67 this.valueTextBox.KeyDown += new System.Windows.Forms.KeyEventHandler(this.valueTextBox_KeyDown); … … 77 82 this.valueLabel.TabIndex = 0; 78 83 this.valueLabel.Text = "&Value:"; 79 this.valueLabel.VisibleChanged += new System.EventHandler(this.valueLabel_VisibleChanged); 84 // 85 // splitContainer 86 // 87 this.splitContainer.Dock = System.Windows.Forms.DockStyle.Fill; 88 this.splitContainer.FixedPanel = System.Windows.Forms.FixedPanel.Panel1; 89 this.splitContainer.IsSplitterFixed = true; 90 this.splitContainer.Location = new System.Drawing.Point(0, 0); 91 this.splitContainer.Name = "splitContainer"; 92 // 93 // splitContainer.Panel1 94 // 95 this.splitContainer.Panel1.Controls.Add(this.valueLabel); 96 // 97 // splitContainer.Panel2 98 // 99 this.splitContainer.Panel2.Controls.Add(this.valueTextBox); 100 this.splitContainer.Size = new System.Drawing.Size(194, 21); 101 this.splitContainer.SplitterDistance = 41; 102 this.splitContainer.SplitterWidth = 1; 103 this.splitContainer.TabIndex = 2; 80 104 // 81 105 // StringConvertibleValueView … … 83 107 this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); 84 108 this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; 85 this.Controls.Add(this.valueLabel); 86 this.Controls.Add(this.valueTextBox); 109 this.Controls.Add(this.splitContainer); 87 110 this.Name = "StringConvertibleValueView"; 88 this.Size = new System.Drawing.Size( 250, 22);111 this.Size = new System.Drawing.Size(194, 21); 89 112 ((System.ComponentModel.ISupportInitialize)(this.errorProvider)).EndInit(); 113 this.splitContainer.Panel1.ResumeLayout(false); 114 this.splitContainer.Panel1.PerformLayout(); 115 this.splitContainer.Panel2.ResumeLayout(false); 116 this.splitContainer.Panel2.PerformLayout(); 117 ((System.ComponentModel.ISupportInitialize)(this.splitContainer)).EndInit(); 118 this.splitContainer.ResumeLayout(false); 90 119 this.ResumeLayout(false); 91 this.PerformLayout();92 120 93 121 } … … 98 126 private System.Windows.Forms.ErrorProvider errorProvider; 99 127 private System.Windows.Forms.Label valueLabel; 128 private System.Windows.Forms.SplitContainer splitContainer; 100 129 } 101 130 } -
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.