Trying to fix our design time issues with table layout control.
1.1 --- a/Server/MainForm.Designer.cs Sun Sep 21 21:51:01 2014 +0200
1.2 +++ b/Server/MainForm.Designer.cs Mon Sep 22 10:05:45 2014 +0200
1.3 @@ -49,7 +49,7 @@
1.4 this.buttonHideClock = new System.Windows.Forms.Button();
1.5 this.buttonPowerOff = new System.Windows.Forms.Button();
1.6 this.buttonPowerOn = new System.Windows.Forms.Button();
1.7 - this.label1 = new System.Windows.Forms.Label();
1.8 + this.labelTimerInterval = new System.Windows.Forms.Label();
1.9 this.maskedTextBoxTimerInterval = new System.Windows.Forms.MaskedTextBox();
1.10 this.comboBoxDisplayType = new System.Windows.Forms.ComboBox();
1.11 this.buttonSuspend = new System.Windows.Forms.Button();
1.12 @@ -66,6 +66,7 @@
1.13 this.buttonFont = new System.Windows.Forms.Button();
1.14 this.tabControl = new System.Windows.Forms.TabControl();
1.15 this.tabPageDesign = new System.Windows.Forms.TabPage();
1.16 + this.checkBoxInverseColors = new System.Windows.Forms.CheckBox();
1.17 this.buttonAlignRight = new System.Windows.Forms.Button();
1.18 this.buttonAlignCenter = new System.Windows.Forms.Button();
1.19 this.buttonAlignLeft = new System.Windows.Forms.Button();
1.20 @@ -76,7 +77,6 @@
1.21 this.buttonAddRow = new System.Windows.Forms.Button();
1.22 this.labelFontWidth = new System.Windows.Forms.Label();
1.23 this.labelFontHeight = new System.Windows.Forms.Label();
1.24 - this.checkBoxInverseColors = new System.Windows.Forms.CheckBox();
1.25 this.panelDisplay.SuspendLayout();
1.26 this.tableLayoutPanel.SuspendLayout();
1.27 this.statusStrip.SuspendLayout();
1.28 @@ -105,105 +105,15 @@
1.29 this.tableLayoutPanel.BackColor = System.Drawing.SystemColors.ControlLightLight;
1.30 this.tableLayoutPanel.CellBorderStyle = System.Windows.Forms.TableLayoutPanelCellBorderStyle.Single;
1.31 this.tableLayoutPanel.ColumnCount = 1;
1.32 - this.tableLayoutPanel.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 50F));
1.33 + this.tableLayoutPanel.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 100F));
1.34 this.tableLayoutPanel.Controls.Add(this.marqueeLabelTop, 0, 0);
1.35 this.tableLayoutPanel.Controls.Add(this.marqueeLabelBottom, 0, 1);
1.36 this.tableLayoutPanel.Location = new System.Drawing.Point(0, 0);
1.37 this.tableLayoutPanel.Margin = new System.Windows.Forms.Padding(0);
1.38 this.tableLayoutPanel.Name = "tableLayoutPanel";
1.39 this.tableLayoutPanel.RowCount = 2;
1.40 - this.tableLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 50F));
1.41 - this.tableLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 50F));
1.42 - this.tableLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 20F));
1.43 - this.tableLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 20F));
1.44 - this.tableLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 20F));
1.45 - this.tableLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 20F));
1.46 - this.tableLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 20F));
1.47 - this.tableLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 20F));
1.48 - this.tableLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 20F));
1.49 - this.tableLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 20F));
1.50 - this.tableLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 20F));
1.51 - this.tableLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 20F));
1.52 - this.tableLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 20F));
1.53 - this.tableLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 20F));
1.54 - this.tableLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 20F));
1.55 - this.tableLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 20F));
1.56 - this.tableLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 20F));
1.57 - this.tableLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 20F));
1.58 - this.tableLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 20F));
1.59 - this.tableLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 20F));
1.60 - this.tableLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 20F));
1.61 - this.tableLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 20F));
1.62 - this.tableLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 20F));
1.63 - this.tableLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 20F));
1.64 - this.tableLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 20F));
1.65 - this.tableLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 20F));
1.66 - this.tableLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 20F));
1.67 - this.tableLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 20F));
1.68 - this.tableLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 20F));
1.69 - this.tableLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 20F));
1.70 - this.tableLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 20F));
1.71 - this.tableLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 20F));
1.72 - this.tableLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 20F));
1.73 - this.tableLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 20F));
1.74 - this.tableLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 20F));
1.75 - this.tableLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 20F));
1.76 - this.tableLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 20F));
1.77 - this.tableLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 20F));
1.78 - this.tableLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 20F));
1.79 - this.tableLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 20F));
1.80 - this.tableLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 20F));
1.81 - this.tableLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 20F));
1.82 - this.tableLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 20F));
1.83 - this.tableLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 20F));
1.84 - this.tableLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 20F));
1.85 - this.tableLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 20F));
1.86 - this.tableLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 20F));
1.87 - this.tableLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 20F));
1.88 - this.tableLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 20F));
1.89 - this.tableLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 20F));
1.90 - this.tableLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 20F));
1.91 - this.tableLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 20F));
1.92 - this.tableLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 20F));
1.93 - this.tableLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 20F));
1.94 - this.tableLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 20F));
1.95 - this.tableLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 20F));
1.96 - this.tableLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 20F));
1.97 - this.tableLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 20F));
1.98 - this.tableLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 20F));
1.99 - this.tableLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 20F));
1.100 - this.tableLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 20F));
1.101 - this.tableLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 20F));
1.102 - this.tableLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 20F));
1.103 - this.tableLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 20F));
1.104 - this.tableLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 20F));
1.105 - this.tableLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 20F));
1.106 - this.tableLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 20F));
1.107 - this.tableLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 20F));
1.108 - this.tableLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 20F));
1.109 - this.tableLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 20F));
1.110 - this.tableLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 20F));
1.111 - this.tableLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 20F));
1.112 - this.tableLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 20F));
1.113 - this.tableLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 20F));
1.114 - this.tableLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 20F));
1.115 - this.tableLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 20F));
1.116 - this.tableLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 20F));
1.117 - this.tableLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 20F));
1.118 - this.tableLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 20F));
1.119 - this.tableLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 20F));
1.120 - this.tableLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 20F));
1.121 - this.tableLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 20F));
1.122 - this.tableLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 20F));
1.123 - this.tableLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 20F));
1.124 - this.tableLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 20F));
1.125 - this.tableLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 20F));
1.126 - this.tableLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 20F));
1.127 - this.tableLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 20F));
1.128 - this.tableLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 20F));
1.129 - this.tableLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 20F));
1.130 - this.tableLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 20F));
1.131 - this.tableLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 20F));
1.132 + this.tableLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.AutoSize));
1.133 + this.tableLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.AutoSize));
1.134 this.tableLayoutPanel.Size = new System.Drawing.Size(256, 64);
1.135 this.tableLayoutPanel.TabIndex = 5;
1.136 //
1.137 @@ -334,7 +244,7 @@
1.138 this.tabPageDisplay.Controls.Add(this.buttonHideClock);
1.139 this.tabPageDisplay.Controls.Add(this.buttonPowerOff);
1.140 this.tabPageDisplay.Controls.Add(this.buttonPowerOn);
1.141 - this.tabPageDisplay.Controls.Add(this.label1);
1.142 + this.tabPageDisplay.Controls.Add(this.labelTimerInterval);
1.143 this.tabPageDisplay.Controls.Add(this.maskedTextBoxTimerInterval);
1.144 this.tabPageDisplay.Controls.Add(this.comboBoxDisplayType);
1.145 this.tabPageDisplay.Controls.Add(this.buttonSuspend);
1.146 @@ -393,14 +303,14 @@
1.147 this.buttonPowerOn.UseVisualStyleBackColor = true;
1.148 this.buttonPowerOn.Click += new System.EventHandler(this.buttonPowerOn_Click);
1.149 //
1.150 - // label1
1.151 + // labelTimerInterval
1.152 //
1.153 - this.label1.AutoSize = true;
1.154 - this.label1.Location = new System.Drawing.Point(184, 45);
1.155 - this.label1.Name = "label1";
1.156 - this.label1.Size = new System.Drawing.Size(98, 13);
1.157 - this.label1.TabIndex = 19;
1.158 - this.label1.Text = "Timer interval (ms) :";
1.159 + this.labelTimerInterval.AutoSize = true;
1.160 + this.labelTimerInterval.Location = new System.Drawing.Point(184, 45);
1.161 + this.labelTimerInterval.Name = "labelTimerInterval";
1.162 + this.labelTimerInterval.Size = new System.Drawing.Size(98, 13);
1.163 + this.labelTimerInterval.TabIndex = 19;
1.164 + this.labelTimerInterval.Text = "Timer interval (ms) :";
1.165 //
1.166 // maskedTextBoxTimerInterval
1.167 //
1.168 @@ -596,6 +506,18 @@
1.169 this.tabPageDesign.Text = "Design";
1.170 this.tabPageDesign.UseVisualStyleBackColor = true;
1.171 //
1.172 + // checkBoxInverseColors
1.173 + //
1.174 + this.checkBoxInverseColors.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
1.175 + this.checkBoxInverseColors.AutoSize = true;
1.176 + this.checkBoxInverseColors.Location = new System.Drawing.Point(485, 52);
1.177 + this.checkBoxInverseColors.Name = "checkBoxInverseColors";
1.178 + this.checkBoxInverseColors.Size = new System.Drawing.Size(92, 17);
1.179 + this.checkBoxInverseColors.TabIndex = 21;
1.180 + this.checkBoxInverseColors.Text = "Inverse colors";
1.181 + this.checkBoxInverseColors.UseVisualStyleBackColor = true;
1.182 + this.checkBoxInverseColors.CheckedChanged += new System.EventHandler(this.checkBoxInverseColors_CheckedChanged);
1.183 + //
1.184 // buttonAlignRight
1.185 //
1.186 this.buttonAlignRight.Location = new System.Drawing.Point(171, 105);
1.187 @@ -696,18 +618,6 @@
1.188 this.labelFontHeight.TabIndex = 20;
1.189 this.labelFontHeight.Text = "Font height";
1.190 //
1.191 - // checkBoxInverseColors
1.192 - //
1.193 - this.checkBoxInverseColors.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
1.194 - this.checkBoxInverseColors.AutoSize = true;
1.195 - this.checkBoxInverseColors.Location = new System.Drawing.Point(485, 52);
1.196 - this.checkBoxInverseColors.Name = "checkBoxInverseColors";
1.197 - this.checkBoxInverseColors.Size = new System.Drawing.Size(92, 17);
1.198 - this.checkBoxInverseColors.TabIndex = 21;
1.199 - this.checkBoxInverseColors.Text = "Inverse colors";
1.200 - this.checkBoxInverseColors.UseVisualStyleBackColor = true;
1.201 - this.checkBoxInverseColors.CheckedChanged += new System.EventHandler(this.checkBoxInverseColors_CheckedChanged);
1.202 - //
1.203 // MainForm
1.204 //
1.205 this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
1.206 @@ -783,7 +693,7 @@
1.207 private System.Windows.Forms.Button buttonAlignLeft;
1.208 private System.Windows.Forms.ComboBox comboBoxDisplayType;
1.209 private System.Windows.Forms.MaskedTextBox maskedTextBoxTimerInterval;
1.210 - private System.Windows.Forms.Label label1;
1.211 + private System.Windows.Forms.Label labelTimerInterval;
1.212 private System.Windows.Forms.Button buttonPowerOff;
1.213 private System.Windows.Forms.Button buttonPowerOn;
1.214 private System.Windows.Forms.Button buttonShowClock;
2.1 --- a/Server/MainForm.cs Sun Sep 21 21:51:01 2014 +0200
2.2 +++ b/Server/MainForm.cs Mon Sep 22 10:05:45 2014 +0200
2.3 @@ -275,7 +275,7 @@
2.4 /// </summary>
2.5 private void SetupPixelDelegates()
2.6 {
2.7 - //Select our pixel processing routine
2.8 + //Select our pixel processing routine
2.9 if (cds.InverseColors)
2.10 {
2.11 //iColorFx = ColorChessboard;