Changeset 13014 for trunk/sources/HeuristicLab.MainForm.WindowsForms
- Timestamp:
- 10/15/15 16:41:12 (9 years ago)
- Location:
- trunk/sources/HeuristicLab.MainForm.WindowsForms/3.3/Controls
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.MainForm.WindowsForms/3.3/Controls/ViewHost.Designer.cs
r12012 r13014 129 129 #endregion 130 130 131 pr ivateSystem.Windows.Forms.Label viewsLabel;131 protected System.Windows.Forms.Label viewsLabel; 132 132 private System.Windows.Forms.Label messageLabel; 133 133 private System.Windows.Forms.ToolTip toolTip; -
trunk/sources/HeuristicLab.MainForm.WindowsForms/3.3/Controls/ViewHost.cs
r12012 r13014 29 29 namespace HeuristicLab.MainForm.WindowsForms { 30 30 [Content(typeof(IContent))] 31 public sealedpartial class ViewHost : AsynchronousContentView {31 public partial class ViewHost : AsynchronousContentView { 32 32 public ViewHost() { 33 33 InitializeComponent(); … … 93 93 if (view != null) { 94 94 view.Visible = true; 95 if (ViewsLabelVisible) { 96 view.Anchor = AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Top | AnchorStyles.Right; 97 view.Size = new Size(Width - this.viewsLabel.Width - this.viewsLabel.Margin.Left - this.viewsLabel.Margin.Right, this.Height); 98 } else view.Dock = DockStyle.Fill; 95 ConfigureViewLayout(view); 99 96 if (!Controls.Contains((view))) Controls.Add(view); 100 97 view.OnShown(new ViewShownEventArgs(view, false)); … … 108 105 } 109 106 } 107 } 108 109 protected virtual void ConfigureViewLayout(View view) { 110 if (ViewsLabelVisible) { 111 view.Anchor = AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Top | AnchorStyles.Right; 112 view.Size = new Size(Width - viewsLabel.Width - viewsLabel.Margin.Left - viewsLabel.Margin.Right, Height); 113 } else view.Dock = DockStyle.Fill; 110 114 } 111 115
Note: See TracChangeset
for help on using the changeset viewer.