Making display resize work.
authorStephaneLenclud
Wed, 04 Feb 2015 21:55:45 +0100
changeset 1054196b0ca97d9
parent 104 189aac7dd3d6
child 106 32270ff62819
Making display resize work.
Clearing the display before when closing.
Server/Display.cs
Server/MainForm.Designer.cs
Server/MainForm.cs
     1.1 --- a/Server/Display.cs	Wed Feb 04 17:44:25 2015 +0100
     1.2 +++ b/Server/Display.cs	Wed Feb 04 21:55:45 2015 +0100
     1.3 @@ -73,6 +73,11 @@
     1.4  				return;
     1.5  			}
     1.6  
     1.7 +			//Controversially clearing our screen before closing
     1.8 +			//Consider moving this up into the UI layer
     1.9 +			Clear(); 
    1.10 +			SwapBuffers();
    1.11 +			//
    1.12              MiniDisplayClose(iDevice);
    1.13              iDevice = IntPtr.Zero;
    1.14  			//Broadcast closed event
     2.1 --- a/Server/MainForm.Designer.cs	Wed Feb 04 17:44:25 2015 +0100
     2.2 +++ b/Server/MainForm.Designer.cs	Wed Feb 04 21:55:45 2015 +0100
     2.3 @@ -37,773 +37,774 @@
     2.4          /// </summary>
     2.5          private void InitializeComponent()
     2.6          {
     2.7 -            this.components = new System.ComponentModel.Container();
     2.8 -            System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(MainForm));
     2.9 -            this.panelDisplay = new System.Windows.Forms.Panel();
    2.10 -            this.tableLayoutPanel = new System.Windows.Forms.TableLayoutPanel();
    2.11 -            this.marqueeLabelTop = new SharpDisplayManager.MarqueeLabel();
    2.12 -            this.marqueeLabelBottom = new SharpDisplayManager.MarqueeLabel();
    2.13 -            this.fontDialog = new System.Windows.Forms.FontDialog();
    2.14 -            this.timer = new System.Windows.Forms.Timer(this.components);
    2.15 -            this.statusStrip = new System.Windows.Forms.StatusStrip();
    2.16 -            this.toolStripStatusLabelConnect = new System.Windows.Forms.ToolStripStatusLabel();
    2.17 -            this.toolStripStatusLabelSpring = new System.Windows.Forms.ToolStripStatusLabel();
    2.18 -            this.toolStripStatusLabelPower = new System.Windows.Forms.ToolStripStatusLabel();
    2.19 -            this.toolStripStatusLabelFps = new System.Windows.Forms.ToolStripStatusLabel();
    2.20 -            this.tabPageClients = new System.Windows.Forms.TabPage();
    2.21 -            this.buttonCloseClients = new System.Windows.Forms.Button();
    2.22 -            this.buttonStartClient = new System.Windows.Forms.Button();
    2.23 -            this.treeViewClients = new System.Windows.Forms.TreeView();
    2.24 -            this.tabPageDisplay = new System.Windows.Forms.TabPage();
    2.25 -            this.buttonShowClock = new System.Windows.Forms.Button();
    2.26 -            this.buttonHideClock = new System.Windows.Forms.Button();
    2.27 -            this.buttonPowerOff = new System.Windows.Forms.Button();
    2.28 -            this.buttonPowerOn = new System.Windows.Forms.Button();
    2.29 -            this.labelTimerInterval = new System.Windows.Forms.Label();
    2.30 -            this.maskedTextBoxTimerInterval = new System.Windows.Forms.MaskedTextBox();
    2.31 -            this.comboBoxDisplayType = new System.Windows.Forms.ComboBox();
    2.32 -            this.buttonSuspend = new System.Windows.Forms.Button();
    2.33 -            this.checkBoxConnectOnStartup = new System.Windows.Forms.CheckBox();
    2.34 -            this.trackBarBrightness = new System.Windows.Forms.TrackBar();
    2.35 -            this.buttonFill = new System.Windows.Forms.Button();
    2.36 -            this.buttonClear = new System.Windows.Forms.Button();
    2.37 -            this.buttonClose = new System.Windows.Forms.Button();
    2.38 -            this.buttonOpen = new System.Windows.Forms.Button();
    2.39 -            this.buttonCapture = new System.Windows.Forms.Button();
    2.40 -            this.labelWarning = new System.Windows.Forms.Label();
    2.41 -            this.checkBoxFixedPitchFontOnly = new System.Windows.Forms.CheckBox();
    2.42 -            this.checkBoxShowBorders = new System.Windows.Forms.CheckBox();
    2.43 -            this.buttonFont = new System.Windows.Forms.Button();
    2.44 -            this.tabControl = new System.Windows.Forms.TabControl();
    2.45 -            this.tabPageDesign = new System.Windows.Forms.TabPage();
    2.46 -            this.labelScrollLoopSeparator = new System.Windows.Forms.Label();
    2.47 -            this.textBoxScrollLoopSeparator = new System.Windows.Forms.TextBox();
    2.48 -            this.labelMinFontSize = new System.Windows.Forms.Label();
    2.49 -            this.maskedTextBoxMinFontSize = new System.Windows.Forms.MaskedTextBox();
    2.50 -            this.checkBoxScaleToFit = new System.Windows.Forms.CheckBox();
    2.51 -            this.checkBoxInverseColors = new System.Windows.Forms.CheckBox();
    2.52 -            this.buttonAlignRight = new System.Windows.Forms.Button();
    2.53 -            this.buttonAlignCenter = new System.Windows.Forms.Button();
    2.54 -            this.buttonAlignLeft = new System.Windows.Forms.Button();
    2.55 -            this.buttonRemoveColumn = new System.Windows.Forms.Button();
    2.56 -            this.buttonAddColumn = new System.Windows.Forms.Button();
    2.57 -            this.checkBoxReverseScreen = new System.Windows.Forms.CheckBox();
    2.58 -            this.buttonRemoveRow = new System.Windows.Forms.Button();
    2.59 -            this.buttonAddRow = new System.Windows.Forms.Button();
    2.60 -            this.tabPageApp = new System.Windows.Forms.TabPage();
    2.61 -            this.checkBoxStartMinimized = new System.Windows.Forms.CheckBox();
    2.62 -            this.checkBoxMinimizeToTray = new System.Windows.Forms.CheckBox();
    2.63 -            this.checkBoxAutoStart = new System.Windows.Forms.CheckBox();
    2.64 -            this.buttonUpdate = new System.Windows.Forms.Button();
    2.65 -            this.labelFontWidth = new System.Windows.Forms.Label();
    2.66 -            this.labelFontHeight = new System.Windows.Forms.Label();
    2.67 -            this.pictureBoxDemo = new System.Windows.Forms.PictureBox();
    2.68 -            this.panelDisplay.SuspendLayout();
    2.69 -            this.tableLayoutPanel.SuspendLayout();
    2.70 -            this.statusStrip.SuspendLayout();
    2.71 -            this.tabPageClients.SuspendLayout();
    2.72 -            this.tabPageDisplay.SuspendLayout();
    2.73 -            ((System.ComponentModel.ISupportInitialize)(this.trackBarBrightness)).BeginInit();
    2.74 -            this.tabControl.SuspendLayout();
    2.75 -            this.tabPageDesign.SuspendLayout();
    2.76 -            this.tabPageApp.SuspendLayout();
    2.77 -            ((System.ComponentModel.ISupportInitialize)(this.pictureBoxDemo)).BeginInit();
    2.78 -            this.SuspendLayout();
    2.79 -            // 
    2.80 -            // panelDisplay
    2.81 -            // 
    2.82 -            this.panelDisplay.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
    2.83 -            this.panelDisplay.Controls.Add(this.tableLayoutPanel);
    2.84 -            this.panelDisplay.Location = new System.Drawing.Point(173, 40);
    2.85 -            this.panelDisplay.Margin = new System.Windows.Forms.Padding(0);
    2.86 -            this.panelDisplay.Name = "panelDisplay";
    2.87 -            this.panelDisplay.Size = new System.Drawing.Size(258, 66);
    2.88 -            this.panelDisplay.TabIndex = 12;
    2.89 -            // 
    2.90 -            // tableLayoutPanel
    2.91 -            // 
    2.92 -            this.tableLayoutPanel.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 
    2.93 +			this.components = new System.ComponentModel.Container();
    2.94 +			System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(MainForm));
    2.95 +			this.panelDisplay = new System.Windows.Forms.Panel();
    2.96 +			this.tableLayoutPanel = new System.Windows.Forms.TableLayoutPanel();
    2.97 +			this.marqueeLabelTop = new SharpDisplayManager.MarqueeLabel();
    2.98 +			this.marqueeLabelBottom = new SharpDisplayManager.MarqueeLabel();
    2.99 +			this.fontDialog = new System.Windows.Forms.FontDialog();
   2.100 +			this.timer = new System.Windows.Forms.Timer(this.components);
   2.101 +			this.statusStrip = new System.Windows.Forms.StatusStrip();
   2.102 +			this.toolStripStatusLabelConnect = new System.Windows.Forms.ToolStripStatusLabel();
   2.103 +			this.toolStripStatusLabelSpring = new System.Windows.Forms.ToolStripStatusLabel();
   2.104 +			this.toolStripStatusLabelPower = new System.Windows.Forms.ToolStripStatusLabel();
   2.105 +			this.toolStripStatusLabelFps = new System.Windows.Forms.ToolStripStatusLabel();
   2.106 +			this.tabPageClients = new System.Windows.Forms.TabPage();
   2.107 +			this.buttonCloseClients = new System.Windows.Forms.Button();
   2.108 +			this.buttonStartClient = new System.Windows.Forms.Button();
   2.109 +			this.treeViewClients = new System.Windows.Forms.TreeView();
   2.110 +			this.tabPageDisplay = new System.Windows.Forms.TabPage();
   2.111 +			this.buttonShowClock = new System.Windows.Forms.Button();
   2.112 +			this.buttonHideClock = new System.Windows.Forms.Button();
   2.113 +			this.buttonPowerOff = new System.Windows.Forms.Button();
   2.114 +			this.buttonPowerOn = new System.Windows.Forms.Button();
   2.115 +			this.labelTimerInterval = new System.Windows.Forms.Label();
   2.116 +			this.maskedTextBoxTimerInterval = new System.Windows.Forms.MaskedTextBox();
   2.117 +			this.comboBoxDisplayType = new System.Windows.Forms.ComboBox();
   2.118 +			this.buttonSuspend = new System.Windows.Forms.Button();
   2.119 +			this.checkBoxConnectOnStartup = new System.Windows.Forms.CheckBox();
   2.120 +			this.trackBarBrightness = new System.Windows.Forms.TrackBar();
   2.121 +			this.buttonFill = new System.Windows.Forms.Button();
   2.122 +			this.buttonClear = new System.Windows.Forms.Button();
   2.123 +			this.buttonClose = new System.Windows.Forms.Button();
   2.124 +			this.buttonOpen = new System.Windows.Forms.Button();
   2.125 +			this.buttonCapture = new System.Windows.Forms.Button();
   2.126 +			this.labelWarning = new System.Windows.Forms.Label();
   2.127 +			this.checkBoxFixedPitchFontOnly = new System.Windows.Forms.CheckBox();
   2.128 +			this.checkBoxShowBorders = new System.Windows.Forms.CheckBox();
   2.129 +			this.buttonFont = new System.Windows.Forms.Button();
   2.130 +			this.tabControl = new System.Windows.Forms.TabControl();
   2.131 +			this.tabPageDesign = new System.Windows.Forms.TabPage();
   2.132 +			this.labelScrollLoopSeparator = new System.Windows.Forms.Label();
   2.133 +			this.textBoxScrollLoopSeparator = new System.Windows.Forms.TextBox();
   2.134 +			this.labelMinFontSize = new System.Windows.Forms.Label();
   2.135 +			this.maskedTextBoxMinFontSize = new System.Windows.Forms.MaskedTextBox();
   2.136 +			this.checkBoxScaleToFit = new System.Windows.Forms.CheckBox();
   2.137 +			this.checkBoxInverseColors = new System.Windows.Forms.CheckBox();
   2.138 +			this.buttonAlignRight = new System.Windows.Forms.Button();
   2.139 +			this.buttonAlignCenter = new System.Windows.Forms.Button();
   2.140 +			this.buttonAlignLeft = new System.Windows.Forms.Button();
   2.141 +			this.buttonRemoveColumn = new System.Windows.Forms.Button();
   2.142 +			this.buttonAddColumn = new System.Windows.Forms.Button();
   2.143 +			this.checkBoxReverseScreen = new System.Windows.Forms.CheckBox();
   2.144 +			this.buttonRemoveRow = new System.Windows.Forms.Button();
   2.145 +			this.buttonAddRow = new System.Windows.Forms.Button();
   2.146 +			this.tabPageApp = new System.Windows.Forms.TabPage();
   2.147 +			this.checkBoxStartMinimized = new System.Windows.Forms.CheckBox();
   2.148 +			this.checkBoxMinimizeToTray = new System.Windows.Forms.CheckBox();
   2.149 +			this.checkBoxAutoStart = new System.Windows.Forms.CheckBox();
   2.150 +			this.buttonUpdate = new System.Windows.Forms.Button();
   2.151 +			this.labelFontWidth = new System.Windows.Forms.Label();
   2.152 +			this.labelFontHeight = new System.Windows.Forms.Label();
   2.153 +			this.pictureBoxDemo = new System.Windows.Forms.PictureBox();
   2.154 +			this.panelDisplay.SuspendLayout();
   2.155 +			this.tableLayoutPanel.SuspendLayout();
   2.156 +			this.statusStrip.SuspendLayout();
   2.157 +			this.tabPageClients.SuspendLayout();
   2.158 +			this.tabPageDisplay.SuspendLayout();
   2.159 +			((System.ComponentModel.ISupportInitialize)(this.trackBarBrightness)).BeginInit();
   2.160 +			this.tabControl.SuspendLayout();
   2.161 +			this.tabPageDesign.SuspendLayout();
   2.162 +			this.tabPageApp.SuspendLayout();
   2.163 +			((System.ComponentModel.ISupportInitialize)(this.pictureBoxDemo)).BeginInit();
   2.164 +			this.SuspendLayout();
   2.165 +			// 
   2.166 +			// panelDisplay
   2.167 +			// 
   2.168 +			this.panelDisplay.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
   2.169 +			this.panelDisplay.Controls.Add(this.tableLayoutPanel);
   2.170 +			this.panelDisplay.Location = new System.Drawing.Point(173, 40);
   2.171 +			this.panelDisplay.Margin = new System.Windows.Forms.Padding(0);
   2.172 +			this.panelDisplay.Name = "panelDisplay";
   2.173 +			this.panelDisplay.Size = new System.Drawing.Size(258, 66);
   2.174 +			this.panelDisplay.TabIndex = 12;
   2.175 +			// 
   2.176 +			// tableLayoutPanel
   2.177 +			// 
   2.178 +			this.tableLayoutPanel.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 
   2.179              | System.Windows.Forms.AnchorStyles.Left) 
   2.180              | System.Windows.Forms.AnchorStyles.Right)));
   2.181 -            this.tableLayoutPanel.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink;
   2.182 -            this.tableLayoutPanel.BackColor = System.Drawing.SystemColors.ControlLightLight;
   2.183 -            this.tableLayoutPanel.CellBorderStyle = System.Windows.Forms.TableLayoutPanelCellBorderStyle.Single;
   2.184 -            this.tableLayoutPanel.ColumnCount = 1;
   2.185 -            this.tableLayoutPanel.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 100F));
   2.186 -            this.tableLayoutPanel.Controls.Add(this.marqueeLabelTop, 0, 0);
   2.187 -            this.tableLayoutPanel.Controls.Add(this.marqueeLabelBottom, 0, 1);
   2.188 -            this.tableLayoutPanel.GrowStyle = System.Windows.Forms.TableLayoutPanelGrowStyle.FixedSize;
   2.189 -            this.tableLayoutPanel.Location = new System.Drawing.Point(0, 0);
   2.190 -            this.tableLayoutPanel.Margin = new System.Windows.Forms.Padding(0);
   2.191 -            this.tableLayoutPanel.Name = "tableLayoutPanel";
   2.192 -            this.tableLayoutPanel.RowCount = 2;
   2.193 -            this.tableLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 50F));
   2.194 -            this.tableLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 50F));
   2.195 -            this.tableLayoutPanel.Size = new System.Drawing.Size(256, 64);
   2.196 -            this.tableLayoutPanel.TabIndex = 5;
   2.197 -            // 
   2.198 -            // marqueeLabelTop
   2.199 -            // 
   2.200 -            this.marqueeLabelTop.AutoEllipsis = true;
   2.201 -            this.marqueeLabelTop.AutoSize = true;
   2.202 -            this.marqueeLabelTop.BackColor = System.Drawing.Color.Transparent;
   2.203 -            this.marqueeLabelTop.Dock = System.Windows.Forms.DockStyle.Fill;
   2.204 -            this.marqueeLabelTop.Location = new System.Drawing.Point(1, 1);
   2.205 -            this.marqueeLabelTop.Margin = new System.Windows.Forms.Padding(0);
   2.206 -            this.marqueeLabelTop.MinFontSize = 15F;
   2.207 -            this.marqueeLabelTop.Name = "marqueeLabelTop";
   2.208 -            this.marqueeLabelTop.OwnTimer = false;
   2.209 -            this.marqueeLabelTop.PixelsPerSecond = 64;
   2.210 -            this.marqueeLabelTop.ScaleToFit = true;
   2.211 -            this.marqueeLabelTop.Separator = "|";
   2.212 -            this.marqueeLabelTop.Size = new System.Drawing.Size(254, 30);
   2.213 -            this.marqueeLabelTop.TabIndex = 2;
   2.214 -            this.marqueeLabelTop.Text = "ABCDEFGHIJKLMNOPQRST-0123456789";
   2.215 -            this.marqueeLabelTop.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
   2.216 -            this.marqueeLabelTop.UseCompatibleTextRendering = true;
   2.217 -            // 
   2.218 -            // marqueeLabelBottom
   2.219 -            // 
   2.220 -            this.marqueeLabelBottom.AutoEllipsis = true;
   2.221 -            this.marqueeLabelBottom.AutoSize = true;
   2.222 -            this.marqueeLabelBottom.Dock = System.Windows.Forms.DockStyle.Fill;
   2.223 -            this.marqueeLabelBottom.Location = new System.Drawing.Point(1, 32);
   2.224 -            this.marqueeLabelBottom.Margin = new System.Windows.Forms.Padding(0);
   2.225 -            this.marqueeLabelBottom.MinFontSize = 15F;
   2.226 -            this.marqueeLabelBottom.Name = "marqueeLabelBottom";
   2.227 -            this.marqueeLabelBottom.OwnTimer = false;
   2.228 -            this.marqueeLabelBottom.PixelsPerSecond = 64;
   2.229 -            this.marqueeLabelBottom.ScaleToFit = true;
   2.230 -            this.marqueeLabelBottom.Separator = "|";
   2.231 -            this.marqueeLabelBottom.Size = new System.Drawing.Size(254, 31);
   2.232 -            this.marqueeLabelBottom.TabIndex = 3;
   2.233 -            this.marqueeLabelBottom.Text = "abcdefghijklmnopqrst-0123456789";
   2.234 -            this.marqueeLabelBottom.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
   2.235 -            this.marqueeLabelBottom.UseCompatibleTextRendering = true;
   2.236 -            // 
   2.237 -            // timer
   2.238 -            // 
   2.239 -            this.timer.Enabled = true;
   2.240 -            this.timer.Interval = 50;
   2.241 -            this.timer.Tick += new System.EventHandler(this.timer_Tick);
   2.242 -            // 
   2.243 -            // statusStrip
   2.244 -            // 
   2.245 -            this.statusStrip.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
   2.246 +			this.tableLayoutPanel.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink;
   2.247 +			this.tableLayoutPanel.BackColor = System.Drawing.SystemColors.ControlLightLight;
   2.248 +			this.tableLayoutPanel.CellBorderStyle = System.Windows.Forms.TableLayoutPanelCellBorderStyle.Single;
   2.249 +			this.tableLayoutPanel.ColumnCount = 1;
   2.250 +			this.tableLayoutPanel.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 100F));
   2.251 +			this.tableLayoutPanel.Controls.Add(this.marqueeLabelTop, 0, 0);
   2.252 +			this.tableLayoutPanel.Controls.Add(this.marqueeLabelBottom, 0, 1);
   2.253 +			this.tableLayoutPanel.GrowStyle = System.Windows.Forms.TableLayoutPanelGrowStyle.FixedSize;
   2.254 +			this.tableLayoutPanel.Location = new System.Drawing.Point(0, 0);
   2.255 +			this.tableLayoutPanel.Margin = new System.Windows.Forms.Padding(0);
   2.256 +			this.tableLayoutPanel.Name = "tableLayoutPanel";
   2.257 +			this.tableLayoutPanel.RowCount = 2;
   2.258 +			this.tableLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 50F));
   2.259 +			this.tableLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 50F));
   2.260 +			this.tableLayoutPanel.Size = new System.Drawing.Size(256, 64);
   2.261 +			this.tableLayoutPanel.TabIndex = 5;
   2.262 +			this.tableLayoutPanel.SizeChanged += new System.EventHandler(this.tableLayoutPanel_SizeChanged);
   2.263 +			// 
   2.264 +			// marqueeLabelTop
   2.265 +			// 
   2.266 +			this.marqueeLabelTop.AutoEllipsis = true;
   2.267 +			this.marqueeLabelTop.AutoSize = true;
   2.268 +			this.marqueeLabelTop.BackColor = System.Drawing.Color.Transparent;
   2.269 +			this.marqueeLabelTop.Dock = System.Windows.Forms.DockStyle.Fill;
   2.270 +			this.marqueeLabelTop.Location = new System.Drawing.Point(1, 1);
   2.271 +			this.marqueeLabelTop.Margin = new System.Windows.Forms.Padding(0);
   2.272 +			this.marqueeLabelTop.MinFontSize = 15F;
   2.273 +			this.marqueeLabelTop.Name = "marqueeLabelTop";
   2.274 +			this.marqueeLabelTop.OwnTimer = false;
   2.275 +			this.marqueeLabelTop.PixelsPerSecond = 64;
   2.276 +			this.marqueeLabelTop.ScaleToFit = true;
   2.277 +			this.marqueeLabelTop.Separator = "|";
   2.278 +			this.marqueeLabelTop.Size = new System.Drawing.Size(254, 30);
   2.279 +			this.marqueeLabelTop.TabIndex = 2;
   2.280 +			this.marqueeLabelTop.Text = "ABCDEFGHIJKLMNOPQRST-0123456789";
   2.281 +			this.marqueeLabelTop.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
   2.282 +			this.marqueeLabelTop.UseCompatibleTextRendering = true;
   2.283 +			// 
   2.284 +			// marqueeLabelBottom
   2.285 +			// 
   2.286 +			this.marqueeLabelBottom.AutoEllipsis = true;
   2.287 +			this.marqueeLabelBottom.AutoSize = true;
   2.288 +			this.marqueeLabelBottom.Dock = System.Windows.Forms.DockStyle.Fill;
   2.289 +			this.marqueeLabelBottom.Location = new System.Drawing.Point(1, 32);
   2.290 +			this.marqueeLabelBottom.Margin = new System.Windows.Forms.Padding(0);
   2.291 +			this.marqueeLabelBottom.MinFontSize = 15F;
   2.292 +			this.marqueeLabelBottom.Name = "marqueeLabelBottom";
   2.293 +			this.marqueeLabelBottom.OwnTimer = false;
   2.294 +			this.marqueeLabelBottom.PixelsPerSecond = 64;
   2.295 +			this.marqueeLabelBottom.ScaleToFit = true;
   2.296 +			this.marqueeLabelBottom.Separator = "|";
   2.297 +			this.marqueeLabelBottom.Size = new System.Drawing.Size(254, 31);
   2.298 +			this.marqueeLabelBottom.TabIndex = 3;
   2.299 +			this.marqueeLabelBottom.Text = "abcdefghijklmnopqrst-0123456789";
   2.300 +			this.marqueeLabelBottom.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
   2.301 +			this.marqueeLabelBottom.UseCompatibleTextRendering = true;
   2.302 +			// 
   2.303 +			// timer
   2.304 +			// 
   2.305 +			this.timer.Enabled = true;
   2.306 +			this.timer.Interval = 50;
   2.307 +			this.timer.Tick += new System.EventHandler(this.timer_Tick);
   2.308 +			// 
   2.309 +			// statusStrip
   2.310 +			// 
   2.311 +			this.statusStrip.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
   2.312              this.toolStripStatusLabelConnect,
   2.313              this.toolStripStatusLabelSpring,
   2.314              this.toolStripStatusLabelPower,
   2.315              this.toolStripStatusLabelFps});
   2.316 -            this.statusStrip.Location = new System.Drawing.Point(0, 420);
   2.317 -            this.statusStrip.Name = "statusStrip";
   2.318 -            this.statusStrip.RenderMode = System.Windows.Forms.ToolStripRenderMode.Professional;
   2.319 -            this.statusStrip.Size = new System.Drawing.Size(624, 22);
   2.320 -            this.statusStrip.TabIndex = 1;
   2.321 -            this.statusStrip.Text = "statusStrip";
   2.322 -            // 
   2.323 -            // toolStripStatusLabelConnect
   2.324 -            // 
   2.325 -            this.toolStripStatusLabelConnect.Name = "toolStripStatusLabelConnect";
   2.326 -            this.toolStripStatusLabelConnect.Size = new System.Drawing.Size(86, 17);
   2.327 -            this.toolStripStatusLabelConnect.Text = "Not connected";
   2.328 -            // 
   2.329 -            // toolStripStatusLabelSpring
   2.330 -            // 
   2.331 -            this.toolStripStatusLabelSpring.Name = "toolStripStatusLabelSpring";
   2.332 -            this.toolStripStatusLabelSpring.Size = new System.Drawing.Size(473, 17);
   2.333 -            this.toolStripStatusLabelSpring.Spring = true;
   2.334 -            // 
   2.335 -            // toolStripStatusLabelPower
   2.336 -            // 
   2.337 -            this.toolStripStatusLabelPower.Name = "toolStripStatusLabelPower";
   2.338 -            this.toolStripStatusLabelPower.Size = new System.Drawing.Size(24, 17);
   2.339 -            this.toolStripStatusLabelPower.Text = "NA";
   2.340 -            // 
   2.341 -            // toolStripStatusLabelFps
   2.342 -            // 
   2.343 -            this.toolStripStatusLabelFps.Name = "toolStripStatusLabelFps";
   2.344 -            this.toolStripStatusLabelFps.Size = new System.Drawing.Size(26, 17);
   2.345 -            this.toolStripStatusLabelFps.Text = "FPS";
   2.346 -            // 
   2.347 -            // tabPageClients
   2.348 -            // 
   2.349 -            this.tabPageClients.Controls.Add(this.buttonCloseClients);
   2.350 -            this.tabPageClients.Controls.Add(this.buttonStartClient);
   2.351 -            this.tabPageClients.Controls.Add(this.treeViewClients);
   2.352 -            this.tabPageClients.Location = new System.Drawing.Point(4, 22);
   2.353 -            this.tabPageClients.Name = "tabPageClients";
   2.354 -            this.tabPageClients.Padding = new System.Windows.Forms.Padding(3);
   2.355 -            this.tabPageClients.Size = new System.Drawing.Size(592, 242);
   2.356 -            this.tabPageClients.TabIndex = 2;
   2.357 -            this.tabPageClients.Text = "Clients";
   2.358 -            this.tabPageClients.UseVisualStyleBackColor = true;
   2.359 -            // 
   2.360 -            // buttonCloseClients
   2.361 -            // 
   2.362 -            this.buttonCloseClients.Location = new System.Drawing.Point(6, 35);
   2.363 -            this.buttonCloseClients.Name = "buttonCloseClients";
   2.364 -            this.buttonCloseClients.Size = new System.Drawing.Size(75, 23);
   2.365 -            this.buttonCloseClients.TabIndex = 20;
   2.366 -            this.buttonCloseClients.Text = "Close Clients";
   2.367 -            this.buttonCloseClients.UseVisualStyleBackColor = true;
   2.368 -            this.buttonCloseClients.Click += new System.EventHandler(this.buttonCloseClients_Click);
   2.369 -            // 
   2.370 -            // buttonStartClient
   2.371 -            // 
   2.372 -            this.buttonStartClient.Location = new System.Drawing.Point(6, 6);
   2.373 -            this.buttonStartClient.Name = "buttonStartClient";
   2.374 -            this.buttonStartClient.Size = new System.Drawing.Size(75, 23);
   2.375 -            this.buttonStartClient.TabIndex = 19;
   2.376 -            this.buttonStartClient.Text = "Start Client";
   2.377 -            this.buttonStartClient.UseVisualStyleBackColor = true;
   2.378 -            this.buttonStartClient.Click += new System.EventHandler(this.buttonStartClient_Click);
   2.379 -            // 
   2.380 -            // treeViewClients
   2.381 -            // 
   2.382 -            this.treeViewClients.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 
   2.383 +			this.statusStrip.Location = new System.Drawing.Point(0, 420);
   2.384 +			this.statusStrip.Name = "statusStrip";
   2.385 +			this.statusStrip.RenderMode = System.Windows.Forms.ToolStripRenderMode.Professional;
   2.386 +			this.statusStrip.Size = new System.Drawing.Size(624, 22);
   2.387 +			this.statusStrip.TabIndex = 1;
   2.388 +			this.statusStrip.Text = "statusStrip";
   2.389 +			// 
   2.390 +			// toolStripStatusLabelConnect
   2.391 +			// 
   2.392 +			this.toolStripStatusLabelConnect.Name = "toolStripStatusLabelConnect";
   2.393 +			this.toolStripStatusLabelConnect.Size = new System.Drawing.Size(86, 17);
   2.394 +			this.toolStripStatusLabelConnect.Text = "Not connected";
   2.395 +			// 
   2.396 +			// toolStripStatusLabelSpring
   2.397 +			// 
   2.398 +			this.toolStripStatusLabelSpring.Name = "toolStripStatusLabelSpring";
   2.399 +			this.toolStripStatusLabelSpring.Size = new System.Drawing.Size(473, 17);
   2.400 +			this.toolStripStatusLabelSpring.Spring = true;
   2.401 +			// 
   2.402 +			// toolStripStatusLabelPower
   2.403 +			// 
   2.404 +			this.toolStripStatusLabelPower.Name = "toolStripStatusLabelPower";
   2.405 +			this.toolStripStatusLabelPower.Size = new System.Drawing.Size(24, 17);
   2.406 +			this.toolStripStatusLabelPower.Text = "NA";
   2.407 +			// 
   2.408 +			// toolStripStatusLabelFps
   2.409 +			// 
   2.410 +			this.toolStripStatusLabelFps.Name = "toolStripStatusLabelFps";
   2.411 +			this.toolStripStatusLabelFps.Size = new System.Drawing.Size(26, 17);
   2.412 +			this.toolStripStatusLabelFps.Text = "FPS";
   2.413 +			// 
   2.414 +			// tabPageClients
   2.415 +			// 
   2.416 +			this.tabPageClients.Controls.Add(this.buttonCloseClients);
   2.417 +			this.tabPageClients.Controls.Add(this.buttonStartClient);
   2.418 +			this.tabPageClients.Controls.Add(this.treeViewClients);
   2.419 +			this.tabPageClients.Location = new System.Drawing.Point(4, 22);
   2.420 +			this.tabPageClients.Name = "tabPageClients";
   2.421 +			this.tabPageClients.Padding = new System.Windows.Forms.Padding(3);
   2.422 +			this.tabPageClients.Size = new System.Drawing.Size(592, 242);
   2.423 +			this.tabPageClients.TabIndex = 2;
   2.424 +			this.tabPageClients.Text = "Clients";
   2.425 +			this.tabPageClients.UseVisualStyleBackColor = true;
   2.426 +			// 
   2.427 +			// buttonCloseClients
   2.428 +			// 
   2.429 +			this.buttonCloseClients.Location = new System.Drawing.Point(6, 35);
   2.430 +			this.buttonCloseClients.Name = "buttonCloseClients";
   2.431 +			this.buttonCloseClients.Size = new System.Drawing.Size(75, 23);
   2.432 +			this.buttonCloseClients.TabIndex = 20;
   2.433 +			this.buttonCloseClients.Text = "Close Clients";
   2.434 +			this.buttonCloseClients.UseVisualStyleBackColor = true;
   2.435 +			this.buttonCloseClients.Click += new System.EventHandler(this.buttonCloseClients_Click);
   2.436 +			// 
   2.437 +			// buttonStartClient
   2.438 +			// 
   2.439 +			this.buttonStartClient.Location = new System.Drawing.Point(6, 6);
   2.440 +			this.buttonStartClient.Name = "buttonStartClient";
   2.441 +			this.buttonStartClient.Size = new System.Drawing.Size(75, 23);
   2.442 +			this.buttonStartClient.TabIndex = 19;
   2.443 +			this.buttonStartClient.Text = "Start Client";
   2.444 +			this.buttonStartClient.UseVisualStyleBackColor = true;
   2.445 +			this.buttonStartClient.Click += new System.EventHandler(this.buttonStartClient_Click);
   2.446 +			// 
   2.447 +			// treeViewClients
   2.448 +			// 
   2.449 +			this.treeViewClients.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 
   2.450              | System.Windows.Forms.AnchorStyles.Left) 
   2.451              | System.Windows.Forms.AnchorStyles.Right)));
   2.452 -            this.treeViewClients.Location = new System.Drawing.Point(87, 6);
   2.453 -            this.treeViewClients.Name = "treeViewClients";
   2.454 -            this.treeViewClients.Size = new System.Drawing.Size(499, 233);
   2.455 -            this.treeViewClients.TabIndex = 0;
   2.456 -            this.treeViewClients.AfterSelect += new System.Windows.Forms.TreeViewEventHandler(this.treeViewClients_AfterSelect);
   2.457 -            // 
   2.458 -            // tabPageDisplay
   2.459 -            // 
   2.460 -            this.tabPageDisplay.Controls.Add(this.buttonShowClock);
   2.461 -            this.tabPageDisplay.Controls.Add(this.buttonHideClock);
   2.462 -            this.tabPageDisplay.Controls.Add(this.buttonPowerOff);
   2.463 -            this.tabPageDisplay.Controls.Add(this.buttonPowerOn);
   2.464 -            this.tabPageDisplay.Controls.Add(this.labelTimerInterval);
   2.465 -            this.tabPageDisplay.Controls.Add(this.maskedTextBoxTimerInterval);
   2.466 -            this.tabPageDisplay.Controls.Add(this.comboBoxDisplayType);
   2.467 -            this.tabPageDisplay.Controls.Add(this.buttonSuspend);
   2.468 -            this.tabPageDisplay.Controls.Add(this.checkBoxConnectOnStartup);
   2.469 -            this.tabPageDisplay.Controls.Add(this.trackBarBrightness);
   2.470 -            this.tabPageDisplay.Controls.Add(this.buttonFill);
   2.471 -            this.tabPageDisplay.Controls.Add(this.buttonClear);
   2.472 -            this.tabPageDisplay.Controls.Add(this.buttonClose);
   2.473 -            this.tabPageDisplay.Controls.Add(this.buttonOpen);
   2.474 -            this.tabPageDisplay.Controls.Add(this.buttonCapture);
   2.475 -            this.tabPageDisplay.Location = new System.Drawing.Point(4, 22);
   2.476 -            this.tabPageDisplay.Name = "tabPageDisplay";
   2.477 -            this.tabPageDisplay.Padding = new System.Windows.Forms.Padding(3);
   2.478 -            this.tabPageDisplay.Size = new System.Drawing.Size(592, 242);
   2.479 -            this.tabPageDisplay.TabIndex = 0;
   2.480 -            this.tabPageDisplay.Text = "Display";
   2.481 -            this.tabPageDisplay.UseVisualStyleBackColor = true;
   2.482 -            // 
   2.483 -            // buttonShowClock
   2.484 -            // 
   2.485 -            this.buttonShowClock.Location = new System.Drawing.Point(293, 124);
   2.486 -            this.buttonShowClock.Name = "buttonShowClock";
   2.487 -            this.buttonShowClock.Size = new System.Drawing.Size(75, 23);
   2.488 -            this.buttonShowClock.TabIndex = 23;
   2.489 -            this.buttonShowClock.Text = "Show Clock";
   2.490 -            this.buttonShowClock.UseVisualStyleBackColor = true;
   2.491 -            this.buttonShowClock.Click += new System.EventHandler(this.buttonShowClock_Click);
   2.492 -            // 
   2.493 -            // buttonHideClock
   2.494 -            // 
   2.495 -            this.buttonHideClock.Location = new System.Drawing.Point(293, 153);
   2.496 -            this.buttonHideClock.Name = "buttonHideClock";
   2.497 -            this.buttonHideClock.Size = new System.Drawing.Size(75, 23);
   2.498 -            this.buttonHideClock.TabIndex = 22;
   2.499 -            this.buttonHideClock.Text = "Hide Clock";
   2.500 -            this.buttonHideClock.UseVisualStyleBackColor = true;
   2.501 -            this.buttonHideClock.Click += new System.EventHandler(this.buttonHideClock_Click);
   2.502 -            // 
   2.503 -            // buttonPowerOff
   2.504 -            // 
   2.505 -            this.buttonPowerOff.Location = new System.Drawing.Point(293, 211);
   2.506 -            this.buttonPowerOff.Name = "buttonPowerOff";
   2.507 -            this.buttonPowerOff.Size = new System.Drawing.Size(75, 23);
   2.508 -            this.buttonPowerOff.TabIndex = 21;
   2.509 -            this.buttonPowerOff.Text = "OFF";
   2.510 -            this.buttonPowerOff.UseVisualStyleBackColor = true;
   2.511 -            this.buttonPowerOff.Click += new System.EventHandler(this.buttonPowerOff_Click);
   2.512 -            // 
   2.513 -            // buttonPowerOn
   2.514 -            // 
   2.515 -            this.buttonPowerOn.Location = new System.Drawing.Point(293, 182);
   2.516 -            this.buttonPowerOn.Name = "buttonPowerOn";
   2.517 -            this.buttonPowerOn.Size = new System.Drawing.Size(75, 23);
   2.518 -            this.buttonPowerOn.TabIndex = 20;
   2.519 -            this.buttonPowerOn.Text = "ON";
   2.520 -            this.buttonPowerOn.UseVisualStyleBackColor = true;
   2.521 -            this.buttonPowerOn.Click += new System.EventHandler(this.buttonPowerOn_Click);
   2.522 -            // 
   2.523 -            // labelTimerInterval
   2.524 -            // 
   2.525 -            this.labelTimerInterval.AutoSize = true;
   2.526 -            this.labelTimerInterval.Location = new System.Drawing.Point(184, 45);
   2.527 -            this.labelTimerInterval.Name = "labelTimerInterval";
   2.528 -            this.labelTimerInterval.Size = new System.Drawing.Size(98, 13);
   2.529 -            this.labelTimerInterval.TabIndex = 19;
   2.530 -            this.labelTimerInterval.Text = "Timer interval (ms) :";
   2.531 -            // 
   2.532 -            // maskedTextBoxTimerInterval
   2.533 -            // 
   2.534 -            this.maskedTextBoxTimerInterval.Location = new System.Drawing.Point(288, 42);
   2.535 -            this.maskedTextBoxTimerInterval.Mask = "000";
   2.536 -            this.maskedTextBoxTimerInterval.Name = "maskedTextBoxTimerInterval";
   2.537 -            this.maskedTextBoxTimerInterval.PromptChar = ' ';
   2.538 -            this.maskedTextBoxTimerInterval.Size = new System.Drawing.Size(24, 20);
   2.539 -            this.maskedTextBoxTimerInterval.TabIndex = 18;
   2.540 -            this.maskedTextBoxTimerInterval.TextChanged += new System.EventHandler(this.maskedTextBoxTimerInterval_TextChanged);
   2.541 -            // 
   2.542 -            // comboBoxDisplayType
   2.543 -            // 
   2.544 -            this.comboBoxDisplayType.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
   2.545 -            this.comboBoxDisplayType.FormattingEnabled = true;
   2.546 -            this.comboBoxDisplayType.Location = new System.Drawing.Point(187, 9);
   2.547 -            this.comboBoxDisplayType.Name = "comboBoxDisplayType";
   2.548 -            this.comboBoxDisplayType.Size = new System.Drawing.Size(181, 21);
   2.549 -            this.comboBoxDisplayType.TabIndex = 17;
   2.550 -            this.comboBoxDisplayType.SelectedIndexChanged += new System.EventHandler(this.comboBoxDisplayType_SelectedIndexChanged);
   2.551 -            // 
   2.552 -            // buttonSuspend
   2.553 -            // 
   2.554 -            this.buttonSuspend.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
   2.555 -            this.buttonSuspend.Location = new System.Drawing.Point(6, 184);
   2.556 -            this.buttonSuspend.Name = "buttonSuspend";
   2.557 -            this.buttonSuspend.Size = new System.Drawing.Size(75, 23);
   2.558 -            this.buttonSuspend.TabIndex = 16;
   2.559 -            this.buttonSuspend.Text = "Pause";
   2.560 -            this.buttonSuspend.UseVisualStyleBackColor = true;
   2.561 -            this.buttonSuspend.Click += new System.EventHandler(this.buttonSuspend_Click);
   2.562 -            // 
   2.563 -            // checkBoxConnectOnStartup
   2.564 -            // 
   2.565 -            this.checkBoxConnectOnStartup.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
   2.566 -            this.checkBoxConnectOnStartup.AutoSize = true;
   2.567 -            this.checkBoxConnectOnStartup.Location = new System.Drawing.Point(113, 217);
   2.568 -            this.checkBoxConnectOnStartup.Name = "checkBoxConnectOnStartup";
   2.569 -            this.checkBoxConnectOnStartup.Size = new System.Drawing.Size(119, 17);
   2.570 -            this.checkBoxConnectOnStartup.TabIndex = 13;
   2.571 -            this.checkBoxConnectOnStartup.Text = "Connect on stratup ";
   2.572 -            this.checkBoxConnectOnStartup.UseVisualStyleBackColor = true;
   2.573 -            this.checkBoxConnectOnStartup.CheckedChanged += new System.EventHandler(this.checkBoxConnectOnStartup_CheckedChanged);
   2.574 -            // 
   2.575 -            // trackBarBrightness
   2.576 -            // 
   2.577 -            this.trackBarBrightness.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 
   2.578 +			this.treeViewClients.Location = new System.Drawing.Point(87, 6);
   2.579 +			this.treeViewClients.Name = "treeViewClients";
   2.580 +			this.treeViewClients.Size = new System.Drawing.Size(499, 233);
   2.581 +			this.treeViewClients.TabIndex = 0;
   2.582 +			this.treeViewClients.AfterSelect += new System.Windows.Forms.TreeViewEventHandler(this.treeViewClients_AfterSelect);
   2.583 +			// 
   2.584 +			// tabPageDisplay
   2.585 +			// 
   2.586 +			this.tabPageDisplay.Controls.Add(this.buttonShowClock);
   2.587 +			this.tabPageDisplay.Controls.Add(this.buttonHideClock);
   2.588 +			this.tabPageDisplay.Controls.Add(this.buttonPowerOff);
   2.589 +			this.tabPageDisplay.Controls.Add(this.buttonPowerOn);
   2.590 +			this.tabPageDisplay.Controls.Add(this.labelTimerInterval);
   2.591 +			this.tabPageDisplay.Controls.Add(this.maskedTextBoxTimerInterval);
   2.592 +			this.tabPageDisplay.Controls.Add(this.comboBoxDisplayType);
   2.593 +			this.tabPageDisplay.Controls.Add(this.buttonSuspend);
   2.594 +			this.tabPageDisplay.Controls.Add(this.checkBoxConnectOnStartup);
   2.595 +			this.tabPageDisplay.Controls.Add(this.trackBarBrightness);
   2.596 +			this.tabPageDisplay.Controls.Add(this.buttonFill);
   2.597 +			this.tabPageDisplay.Controls.Add(this.buttonClear);
   2.598 +			this.tabPageDisplay.Controls.Add(this.buttonClose);
   2.599 +			this.tabPageDisplay.Controls.Add(this.buttonOpen);
   2.600 +			this.tabPageDisplay.Controls.Add(this.buttonCapture);
   2.601 +			this.tabPageDisplay.Location = new System.Drawing.Point(4, 22);
   2.602 +			this.tabPageDisplay.Name = "tabPageDisplay";
   2.603 +			this.tabPageDisplay.Padding = new System.Windows.Forms.Padding(3);
   2.604 +			this.tabPageDisplay.Size = new System.Drawing.Size(592, 242);
   2.605 +			this.tabPageDisplay.TabIndex = 0;
   2.606 +			this.tabPageDisplay.Text = "Display";
   2.607 +			this.tabPageDisplay.UseVisualStyleBackColor = true;
   2.608 +			// 
   2.609 +			// buttonShowClock
   2.610 +			// 
   2.611 +			this.buttonShowClock.Location = new System.Drawing.Point(293, 124);
   2.612 +			this.buttonShowClock.Name = "buttonShowClock";
   2.613 +			this.buttonShowClock.Size = new System.Drawing.Size(75, 23);
   2.614 +			this.buttonShowClock.TabIndex = 23;
   2.615 +			this.buttonShowClock.Text = "Show Clock";
   2.616 +			this.buttonShowClock.UseVisualStyleBackColor = true;
   2.617 +			this.buttonShowClock.Click += new System.EventHandler(this.buttonShowClock_Click);
   2.618 +			// 
   2.619 +			// buttonHideClock
   2.620 +			// 
   2.621 +			this.buttonHideClock.Location = new System.Drawing.Point(293, 153);
   2.622 +			this.buttonHideClock.Name = "buttonHideClock";
   2.623 +			this.buttonHideClock.Size = new System.Drawing.Size(75, 23);
   2.624 +			this.buttonHideClock.TabIndex = 22;
   2.625 +			this.buttonHideClock.Text = "Hide Clock";
   2.626 +			this.buttonHideClock.UseVisualStyleBackColor = true;
   2.627 +			this.buttonHideClock.Click += new System.EventHandler(this.buttonHideClock_Click);
   2.628 +			// 
   2.629 +			// buttonPowerOff
   2.630 +			// 
   2.631 +			this.buttonPowerOff.Location = new System.Drawing.Point(293, 211);
   2.632 +			this.buttonPowerOff.Name = "buttonPowerOff";
   2.633 +			this.buttonPowerOff.Size = new System.Drawing.Size(75, 23);
   2.634 +			this.buttonPowerOff.TabIndex = 21;
   2.635 +			this.buttonPowerOff.Text = "OFF";
   2.636 +			this.buttonPowerOff.UseVisualStyleBackColor = true;
   2.637 +			this.buttonPowerOff.Click += new System.EventHandler(this.buttonPowerOff_Click);
   2.638 +			// 
   2.639 +			// buttonPowerOn
   2.640 +			// 
   2.641 +			this.buttonPowerOn.Location = new System.Drawing.Point(293, 182);
   2.642 +			this.buttonPowerOn.Name = "buttonPowerOn";
   2.643 +			this.buttonPowerOn.Size = new System.Drawing.Size(75, 23);
   2.644 +			this.buttonPowerOn.TabIndex = 20;
   2.645 +			this.buttonPowerOn.Text = "ON";
   2.646 +			this.buttonPowerOn.UseVisualStyleBackColor = true;
   2.647 +			this.buttonPowerOn.Click += new System.EventHandler(this.buttonPowerOn_Click);
   2.648 +			// 
   2.649 +			// labelTimerInterval
   2.650 +			// 
   2.651 +			this.labelTimerInterval.AutoSize = true;
   2.652 +			this.labelTimerInterval.Location = new System.Drawing.Point(184, 45);
   2.653 +			this.labelTimerInterval.Name = "labelTimerInterval";
   2.654 +			this.labelTimerInterval.Size = new System.Drawing.Size(98, 13);
   2.655 +			this.labelTimerInterval.TabIndex = 19;
   2.656 +			this.labelTimerInterval.Text = "Timer interval (ms) :";
   2.657 +			// 
   2.658 +			// maskedTextBoxTimerInterval
   2.659 +			// 
   2.660 +			this.maskedTextBoxTimerInterval.Location = new System.Drawing.Point(288, 42);
   2.661 +			this.maskedTextBoxTimerInterval.Mask = "000";
   2.662 +			this.maskedTextBoxTimerInterval.Name = "maskedTextBoxTimerInterval";
   2.663 +			this.maskedTextBoxTimerInterval.PromptChar = ' ';
   2.664 +			this.maskedTextBoxTimerInterval.Size = new System.Drawing.Size(24, 20);
   2.665 +			this.maskedTextBoxTimerInterval.TabIndex = 18;
   2.666 +			this.maskedTextBoxTimerInterval.TextChanged += new System.EventHandler(this.maskedTextBoxTimerInterval_TextChanged);
   2.667 +			// 
   2.668 +			// comboBoxDisplayType
   2.669 +			// 
   2.670 +			this.comboBoxDisplayType.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
   2.671 +			this.comboBoxDisplayType.FormattingEnabled = true;
   2.672 +			this.comboBoxDisplayType.Location = new System.Drawing.Point(187, 9);
   2.673 +			this.comboBoxDisplayType.Name = "comboBoxDisplayType";
   2.674 +			this.comboBoxDisplayType.Size = new System.Drawing.Size(181, 21);
   2.675 +			this.comboBoxDisplayType.TabIndex = 17;
   2.676 +			this.comboBoxDisplayType.SelectedIndexChanged += new System.EventHandler(this.comboBoxDisplayType_SelectedIndexChanged);
   2.677 +			// 
   2.678 +			// buttonSuspend
   2.679 +			// 
   2.680 +			this.buttonSuspend.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
   2.681 +			this.buttonSuspend.Location = new System.Drawing.Point(6, 184);
   2.682 +			this.buttonSuspend.Name = "buttonSuspend";
   2.683 +			this.buttonSuspend.Size = new System.Drawing.Size(75, 23);
   2.684 +			this.buttonSuspend.TabIndex = 16;
   2.685 +			this.buttonSuspend.Text = "Pause";
   2.686 +			this.buttonSuspend.UseVisualStyleBackColor = true;
   2.687 +			this.buttonSuspend.Click += new System.EventHandler(this.buttonSuspend_Click);
   2.688 +			// 
   2.689 +			// checkBoxConnectOnStartup
   2.690 +			// 
   2.691 +			this.checkBoxConnectOnStartup.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
   2.692 +			this.checkBoxConnectOnStartup.AutoSize = true;
   2.693 +			this.checkBoxConnectOnStartup.Location = new System.Drawing.Point(113, 217);
   2.694 +			this.checkBoxConnectOnStartup.Name = "checkBoxConnectOnStartup";
   2.695 +			this.checkBoxConnectOnStartup.Size = new System.Drawing.Size(119, 17);
   2.696 +			this.checkBoxConnectOnStartup.TabIndex = 13;
   2.697 +			this.checkBoxConnectOnStartup.Text = "Connect on stratup ";
   2.698 +			this.checkBoxConnectOnStartup.UseVisualStyleBackColor = true;
   2.699 +			this.checkBoxConnectOnStartup.CheckedChanged += new System.EventHandler(this.checkBoxConnectOnStartup_CheckedChanged);
   2.700 +			// 
   2.701 +			// trackBarBrightness
   2.702 +			// 
   2.703 +			this.trackBarBrightness.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 
   2.704              | System.Windows.Forms.AnchorStyles.Right)));
   2.705 -            this.trackBarBrightness.BackColor = System.Drawing.SystemColors.Window;
   2.706 -            this.trackBarBrightness.Location = new System.Drawing.Point(544, 9);
   2.707 -            this.trackBarBrightness.Name = "trackBarBrightness";
   2.708 -            this.trackBarBrightness.Orientation = System.Windows.Forms.Orientation.Vertical;
   2.709 -            this.trackBarBrightness.Size = new System.Drawing.Size(45, 225);
   2.710 -            this.trackBarBrightness.TabIndex = 10;
   2.711 -            this.trackBarBrightness.TickStyle = System.Windows.Forms.TickStyle.Both;
   2.712 -            this.trackBarBrightness.Scroll += new System.EventHandler(this.trackBarBrightness_Scroll);
   2.713 -            // 
   2.714 -            // buttonFill
   2.715 -            // 
   2.716 -            this.buttonFill.Location = new System.Drawing.Point(6, 93);
   2.717 -            this.buttonFill.Name = "buttonFill";
   2.718 -            this.buttonFill.Size = new System.Drawing.Size(75, 23);
   2.719 -            this.buttonFill.TabIndex = 9;
   2.720 -            this.buttonFill.Text = "Fill";
   2.721 -            this.buttonFill.UseVisualStyleBackColor = true;
   2.722 -            this.buttonFill.Click += new System.EventHandler(this.buttonFill_Click);
   2.723 -            // 
   2.724 -            // buttonClear
   2.725 -            // 
   2.726 -            this.buttonClear.Location = new System.Drawing.Point(6, 64);
   2.727 -            this.buttonClear.Name = "buttonClear";
   2.728 -            this.buttonClear.Size = new System.Drawing.Size(75, 23);
   2.729 -            this.buttonClear.TabIndex = 8;
   2.730 -            this.buttonClear.Text = "Clear";
   2.731 -            this.buttonClear.UseVisualStyleBackColor = true;
   2.732 -            this.buttonClear.Click += new System.EventHandler(this.buttonClear_Click);
   2.733 -            // 
   2.734 -            // buttonClose
   2.735 -            // 
   2.736 -            this.buttonClose.Location = new System.Drawing.Point(6, 35);
   2.737 -            this.buttonClose.Name = "buttonClose";
   2.738 -            this.buttonClose.Size = new System.Drawing.Size(75, 23);
   2.739 -            this.buttonClose.TabIndex = 7;
   2.740 -            this.buttonClose.Text = "Close";
   2.741 -            this.buttonClose.UseVisualStyleBackColor = true;
   2.742 -            this.buttonClose.Click += new System.EventHandler(this.buttonClose_Click);
   2.743 -            // 
   2.744 -            // buttonOpen
   2.745 -            // 
   2.746 -            this.buttonOpen.Location = new System.Drawing.Point(6, 6);
   2.747 -            this.buttonOpen.Name = "buttonOpen";
   2.748 -            this.buttonOpen.Size = new System.Drawing.Size(75, 23);
   2.749 -            this.buttonOpen.TabIndex = 6;
   2.750 -            this.buttonOpen.Text = "Open";
   2.751 -            this.buttonOpen.UseVisualStyleBackColor = true;
   2.752 -            this.buttonOpen.Click += new System.EventHandler(this.buttonOpen_Click);
   2.753 -            // 
   2.754 -            // buttonCapture
   2.755 -            // 
   2.756 -            this.buttonCapture.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
   2.757 -            this.buttonCapture.Location = new System.Drawing.Point(6, 213);
   2.758 -            this.buttonCapture.Name = "buttonCapture";
   2.759 -            this.buttonCapture.Size = new System.Drawing.Size(75, 23);
   2.760 -            this.buttonCapture.TabIndex = 5;
   2.761 -            this.buttonCapture.Text = "Capture";
   2.762 -            this.buttonCapture.UseVisualStyleBackColor = true;
   2.763 -            this.buttonCapture.Click += new System.EventHandler(this.buttonCapture_Click);
   2.764 -            // 
   2.765 -            // labelWarning
   2.766 -            // 
   2.767 -            this.labelWarning.AutoSize = true;
   2.768 -            this.labelWarning.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
   2.769 -            this.labelWarning.ForeColor = System.Drawing.Color.Red;
   2.770 -            this.labelWarning.Location = new System.Drawing.Point(9, 9);
   2.771 -            this.labelWarning.Name = "labelWarning";
   2.772 -            this.labelWarning.Size = new System.Drawing.Size(80, 16);
   2.773 -            this.labelWarning.TabIndex = 18;
   2.774 -            this.labelWarning.Text = "WARNING";
   2.775 -            this.labelWarning.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
   2.776 -            this.labelWarning.Visible = false;
   2.777 -            // 
   2.778 -            // checkBoxFixedPitchFontOnly
   2.779 -            // 
   2.780 -            this.checkBoxFixedPitchFontOnly.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
   2.781 -            this.checkBoxFixedPitchFontOnly.AutoSize = true;
   2.782 -            this.checkBoxFixedPitchFontOnly.Location = new System.Drawing.Point(87, 217);
   2.783 -            this.checkBoxFixedPitchFontOnly.Name = "checkBoxFixedPitchFontOnly";
   2.784 -            this.checkBoxFixedPitchFontOnly.Size = new System.Drawing.Size(120, 17);
   2.785 -            this.checkBoxFixedPitchFontOnly.TabIndex = 17;
   2.786 -            this.checkBoxFixedPitchFontOnly.Text = "Fixed pitch font only";
   2.787 -            this.checkBoxFixedPitchFontOnly.UseVisualStyleBackColor = true;
   2.788 -            // 
   2.789 -            // checkBoxShowBorders
   2.790 -            // 
   2.791 -            this.checkBoxShowBorders.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
   2.792 -            this.checkBoxShowBorders.AutoSize = true;
   2.793 -            this.checkBoxShowBorders.Location = new System.Drawing.Point(485, 29);
   2.794 -            this.checkBoxShowBorders.Name = "checkBoxShowBorders";
   2.795 -            this.checkBoxShowBorders.Size = new System.Drawing.Size(91, 17);
   2.796 -            this.checkBoxShowBorders.TabIndex = 11;
   2.797 -            this.checkBoxShowBorders.Text = "Show borders";
   2.798 -            this.checkBoxShowBorders.UseVisualStyleBackColor = true;
   2.799 -            this.checkBoxShowBorders.CheckedChanged += new System.EventHandler(this.checkBoxShowBorders_CheckedChanged);
   2.800 -            // 
   2.801 -            // buttonFont
   2.802 -            // 
   2.803 -            this.buttonFont.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
   2.804 -            this.buttonFont.Location = new System.Drawing.Point(6, 213);
   2.805 -            this.buttonFont.Name = "buttonFont";
   2.806 -            this.buttonFont.Size = new System.Drawing.Size(75, 23);
   2.807 -            this.buttonFont.TabIndex = 0;
   2.808 -            this.buttonFont.Text = "Select Font";
   2.809 -            this.buttonFont.UseVisualStyleBackColor = true;
   2.810 -            this.buttonFont.Click += new System.EventHandler(this.buttonFont_Click);
   2.811 -            // 
   2.812 -            // tabControl
   2.813 -            // 
   2.814 -            this.tabControl.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 
   2.815 +			this.trackBarBrightness.BackColor = System.Drawing.SystemColors.Window;
   2.816 +			this.trackBarBrightness.Location = new System.Drawing.Point(544, 9);
   2.817 +			this.trackBarBrightness.Name = "trackBarBrightness";
   2.818 +			this.trackBarBrightness.Orientation = System.Windows.Forms.Orientation.Vertical;
   2.819 +			this.trackBarBrightness.Size = new System.Drawing.Size(45, 225);
   2.820 +			this.trackBarBrightness.TabIndex = 10;
   2.821 +			this.trackBarBrightness.TickStyle = System.Windows.Forms.TickStyle.Both;
   2.822 +			this.trackBarBrightness.Scroll += new System.EventHandler(this.trackBarBrightness_Scroll);
   2.823 +			// 
   2.824 +			// buttonFill
   2.825 +			// 
   2.826 +			this.buttonFill.Location = new System.Drawing.Point(6, 93);
   2.827 +			this.buttonFill.Name = "buttonFill";
   2.828 +			this.buttonFill.Size = new System.Drawing.Size(75, 23);
   2.829 +			this.buttonFill.TabIndex = 9;
   2.830 +			this.buttonFill.Text = "Fill";
   2.831 +			this.buttonFill.UseVisualStyleBackColor = true;
   2.832 +			this.buttonFill.Click += new System.EventHandler(this.buttonFill_Click);
   2.833 +			// 
   2.834 +			// buttonClear
   2.835 +			// 
   2.836 +			this.buttonClear.Location = new System.Drawing.Point(6, 64);
   2.837 +			this.buttonClear.Name = "buttonClear";
   2.838 +			this.buttonClear.Size = new System.Drawing.Size(75, 23);
   2.839 +			this.buttonClear.TabIndex = 8;
   2.840 +			this.buttonClear.Text = "Clear";
   2.841 +			this.buttonClear.UseVisualStyleBackColor = true;
   2.842 +			this.buttonClear.Click += new System.EventHandler(this.buttonClear_Click);
   2.843 +			// 
   2.844 +			// buttonClose
   2.845 +			// 
   2.846 +			this.buttonClose.Location = new System.Drawing.Point(6, 35);
   2.847 +			this.buttonClose.Name = "buttonClose";
   2.848 +			this.buttonClose.Size = new System.Drawing.Size(75, 23);
   2.849 +			this.buttonClose.TabIndex = 7;
   2.850 +			this.buttonClose.Text = "Close";
   2.851 +			this.buttonClose.UseVisualStyleBackColor = true;
   2.852 +			this.buttonClose.Click += new System.EventHandler(this.buttonClose_Click);
   2.853 +			// 
   2.854 +			// buttonOpen
   2.855 +			// 
   2.856 +			this.buttonOpen.Location = new System.Drawing.Point(6, 6);
   2.857 +			this.buttonOpen.Name = "buttonOpen";
   2.858 +			this.buttonOpen.Size = new System.Drawing.Size(75, 23);
   2.859 +			this.buttonOpen.TabIndex = 6;
   2.860 +			this.buttonOpen.Text = "Open";
   2.861 +			this.buttonOpen.UseVisualStyleBackColor = true;
   2.862 +			this.buttonOpen.Click += new System.EventHandler(this.buttonOpen_Click);
   2.863 +			// 
   2.864 +			// buttonCapture
   2.865 +			// 
   2.866 +			this.buttonCapture.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
   2.867 +			this.buttonCapture.Location = new System.Drawing.Point(6, 213);
   2.868 +			this.buttonCapture.Name = "buttonCapture";
   2.869 +			this.buttonCapture.Size = new System.Drawing.Size(75, 23);
   2.870 +			this.buttonCapture.TabIndex = 5;
   2.871 +			this.buttonCapture.Text = "Capture";
   2.872 +			this.buttonCapture.UseVisualStyleBackColor = true;
   2.873 +			this.buttonCapture.Click += new System.EventHandler(this.buttonCapture_Click);
   2.874 +			// 
   2.875 +			// labelWarning
   2.876 +			// 
   2.877 +			this.labelWarning.AutoSize = true;
   2.878 +			this.labelWarning.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
   2.879 +			this.labelWarning.ForeColor = System.Drawing.Color.Red;
   2.880 +			this.labelWarning.Location = new System.Drawing.Point(9, 9);
   2.881 +			this.labelWarning.Name = "labelWarning";
   2.882 +			this.labelWarning.Size = new System.Drawing.Size(80, 16);
   2.883 +			this.labelWarning.TabIndex = 18;
   2.884 +			this.labelWarning.Text = "WARNING";
   2.885 +			this.labelWarning.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
   2.886 +			this.labelWarning.Visible = false;
   2.887 +			// 
   2.888 +			// checkBoxFixedPitchFontOnly
   2.889 +			// 
   2.890 +			this.checkBoxFixedPitchFontOnly.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
   2.891 +			this.checkBoxFixedPitchFontOnly.AutoSize = true;
   2.892 +			this.checkBoxFixedPitchFontOnly.Location = new System.Drawing.Point(87, 217);
   2.893 +			this.checkBoxFixedPitchFontOnly.Name = "checkBoxFixedPitchFontOnly";
   2.894 +			this.checkBoxFixedPitchFontOnly.Size = new System.Drawing.Size(120, 17);
   2.895 +			this.checkBoxFixedPitchFontOnly.TabIndex = 17;
   2.896 +			this.checkBoxFixedPitchFontOnly.Text = "Fixed pitch font only";
   2.897 +			this.checkBoxFixedPitchFontOnly.UseVisualStyleBackColor = true;
   2.898 +			// 
   2.899 +			// checkBoxShowBorders
   2.900 +			// 
   2.901 +			this.checkBoxShowBorders.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
   2.902 +			this.checkBoxShowBorders.AutoSize = true;
   2.903 +			this.checkBoxShowBorders.Location = new System.Drawing.Point(485, 29);
   2.904 +			this.checkBoxShowBorders.Name = "checkBoxShowBorders";
   2.905 +			this.checkBoxShowBorders.Size = new System.Drawing.Size(91, 17);
   2.906 +			this.checkBoxShowBorders.TabIndex = 11;
   2.907 +			this.checkBoxShowBorders.Text = "Show borders";
   2.908 +			this.checkBoxShowBorders.UseVisualStyleBackColor = true;
   2.909 +			this.checkBoxShowBorders.CheckedChanged += new System.EventHandler(this.checkBoxShowBorders_CheckedChanged);
   2.910 +			// 
   2.911 +			// buttonFont
   2.912 +			// 
   2.913 +			this.buttonFont.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
   2.914 +			this.buttonFont.Location = new System.Drawing.Point(6, 213);
   2.915 +			this.buttonFont.Name = "buttonFont";
   2.916 +			this.buttonFont.Size = new System.Drawing.Size(75, 23);
   2.917 +			this.buttonFont.TabIndex = 0;
   2.918 +			this.buttonFont.Text = "Select Font";
   2.919 +			this.buttonFont.UseVisualStyleBackColor = true;
   2.920 +			this.buttonFont.Click += new System.EventHandler(this.buttonFont_Click);
   2.921 +			// 
   2.922 +			// tabControl
   2.923 +			// 
   2.924 +			this.tabControl.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 
   2.925              | System.Windows.Forms.AnchorStyles.Left) 
   2.926              | System.Windows.Forms.AnchorStyles.Right)));
   2.927 -            this.tabControl.Controls.Add(this.tabPageDisplay);
   2.928 -            this.tabControl.Controls.Add(this.tabPageClients);
   2.929 -            this.tabControl.Controls.Add(this.tabPageDesign);
   2.930 -            this.tabControl.Controls.Add(this.tabPageApp);
   2.931 -            this.tabControl.Location = new System.Drawing.Point(12, 139);
   2.932 -            this.tabControl.Name = "tabControl";
   2.933 -            this.tabControl.SelectedIndex = 0;
   2.934 -            this.tabControl.Size = new System.Drawing.Size(600, 268);
   2.935 -            this.tabControl.TabIndex = 0;
   2.936 -            // 
   2.937 -            // tabPageDesign
   2.938 -            // 
   2.939 -            this.tabPageDesign.Controls.Add(this.labelScrollLoopSeparator);
   2.940 -            this.tabPageDesign.Controls.Add(this.textBoxScrollLoopSeparator);
   2.941 -            this.tabPageDesign.Controls.Add(this.labelMinFontSize);
   2.942 -            this.tabPageDesign.Controls.Add(this.maskedTextBoxMinFontSize);
   2.943 -            this.tabPageDesign.Controls.Add(this.checkBoxScaleToFit);
   2.944 -            this.tabPageDesign.Controls.Add(this.checkBoxInverseColors);
   2.945 -            this.tabPageDesign.Controls.Add(this.buttonAlignRight);
   2.946 -            this.tabPageDesign.Controls.Add(this.buttonAlignCenter);
   2.947 -            this.tabPageDesign.Controls.Add(this.buttonAlignLeft);
   2.948 -            this.tabPageDesign.Controls.Add(this.buttonRemoveColumn);
   2.949 -            this.tabPageDesign.Controls.Add(this.checkBoxFixedPitchFontOnly);
   2.950 -            this.tabPageDesign.Controls.Add(this.buttonAddColumn);
   2.951 -            this.tabPageDesign.Controls.Add(this.buttonFont);
   2.952 -            this.tabPageDesign.Controls.Add(this.checkBoxReverseScreen);
   2.953 -            this.tabPageDesign.Controls.Add(this.buttonRemoveRow);
   2.954 -            this.tabPageDesign.Controls.Add(this.buttonAddRow);
   2.955 -            this.tabPageDesign.Controls.Add(this.checkBoxShowBorders);
   2.956 -            this.tabPageDesign.Location = new System.Drawing.Point(4, 22);
   2.957 -            this.tabPageDesign.Name = "tabPageDesign";
   2.958 -            this.tabPageDesign.Padding = new System.Windows.Forms.Padding(3);
   2.959 -            this.tabPageDesign.Size = new System.Drawing.Size(592, 242);
   2.960 -            this.tabPageDesign.TabIndex = 3;
   2.961 -            this.tabPageDesign.Text = "Design";
   2.962 -            this.tabPageDesign.UseVisualStyleBackColor = true;
   2.963 -            // 
   2.964 -            // labelScrollLoopSeparator
   2.965 -            // 
   2.966 -            this.labelScrollLoopSeparator.AutoSize = true;
   2.967 -            this.labelScrollLoopSeparator.Location = new System.Drawing.Point(84, 145);
   2.968 -            this.labelScrollLoopSeparator.Name = "labelScrollLoopSeparator";
   2.969 -            this.labelScrollLoopSeparator.Size = new System.Drawing.Size(109, 13);
   2.970 -            this.labelScrollLoopSeparator.TabIndex = 26;
   2.971 -            this.labelScrollLoopSeparator.Text = "Scroll loop separator :";
   2.972 -            // 
   2.973 -            // textBoxScrollLoopSeparator
   2.974 -            // 
   2.975 -            this.textBoxScrollLoopSeparator.Location = new System.Drawing.Point(205, 142);
   2.976 -            this.textBoxScrollLoopSeparator.Name = "textBoxScrollLoopSeparator";
   2.977 -            this.textBoxScrollLoopSeparator.Size = new System.Drawing.Size(74, 20);
   2.978 -            this.textBoxScrollLoopSeparator.TabIndex = 25;
   2.979 -            this.textBoxScrollLoopSeparator.TextChanged += new System.EventHandler(this.textBoxScrollLoopSeparator_TextChanged);
   2.980 -            // 
   2.981 -            // labelMinFontSize
   2.982 -            // 
   2.983 -            this.labelMinFontSize.AutoSize = true;
   2.984 -            this.labelMinFontSize.Location = new System.Drawing.Point(84, 194);
   2.985 -            this.labelMinFontSize.Name = "labelMinFontSize";
   2.986 -            this.labelMinFontSize.Size = new System.Drawing.Size(119, 13);
   2.987 -            this.labelMinFontSize.TabIndex = 24;
   2.988 -            this.labelMinFontSize.Text = "Minimum font size (pts) :";
   2.989 -            // 
   2.990 -            // maskedTextBoxMinFontSize
   2.991 -            // 
   2.992 -            this.maskedTextBoxMinFontSize.Location = new System.Drawing.Point(205, 191);
   2.993 -            this.maskedTextBoxMinFontSize.Mask = "000";
   2.994 -            this.maskedTextBoxMinFontSize.Name = "maskedTextBoxMinFontSize";
   2.995 -            this.maskedTextBoxMinFontSize.PromptChar = ' ';
   2.996 -            this.maskedTextBoxMinFontSize.Size = new System.Drawing.Size(24, 20);
   2.997 -            this.maskedTextBoxMinFontSize.TabIndex = 23;
   2.998 -            this.maskedTextBoxMinFontSize.TextChanged += new System.EventHandler(this.maskedTextBoxMinFontSize_TextChanged);
   2.999 -            // 
  2.1000 -            // checkBoxScaleToFit
  2.1001 -            // 
  2.1002 -            this.checkBoxScaleToFit.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
  2.1003 -            this.checkBoxScaleToFit.AutoSize = true;
  2.1004 -            this.checkBoxScaleToFit.Location = new System.Drawing.Point(87, 168);
  2.1005 -            this.checkBoxScaleToFit.Name = "checkBoxScaleToFit";
  2.1006 -            this.checkBoxScaleToFit.Size = new System.Drawing.Size(201, 17);
  2.1007 -            this.checkBoxScaleToFit.TabIndex = 22;
  2.1008 -            this.checkBoxScaleToFit.Text = "Try scale font down to avoid scrolling";
  2.1009 -            this.checkBoxScaleToFit.UseVisualStyleBackColor = true;
  2.1010 -            this.checkBoxScaleToFit.CheckedChanged += new System.EventHandler(this.checkBoxScaleToFit_CheckedChanged);
  2.1011 -            // 
  2.1012 -            // checkBoxInverseColors
  2.1013 -            // 
  2.1014 -            this.checkBoxInverseColors.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
  2.1015 -            this.checkBoxInverseColors.AutoSize = true;
  2.1016 -            this.checkBoxInverseColors.Location = new System.Drawing.Point(485, 52);
  2.1017 -            this.checkBoxInverseColors.Name = "checkBoxInverseColors";
  2.1018 -            this.checkBoxInverseColors.Size = new System.Drawing.Size(92, 17);
  2.1019 -            this.checkBoxInverseColors.TabIndex = 21;
  2.1020 -            this.checkBoxInverseColors.Text = "Inverse colors";
  2.1021 -            this.checkBoxInverseColors.UseVisualStyleBackColor = true;
  2.1022 -            this.checkBoxInverseColors.CheckedChanged += new System.EventHandler(this.checkBoxInverseColors_CheckedChanged);
  2.1023 -            // 
  2.1024 -            // buttonAlignRight
  2.1025 -            // 
  2.1026 -            this.buttonAlignRight.Location = new System.Drawing.Point(170, 81);
  2.1027 -            this.buttonAlignRight.Name = "buttonAlignRight";
  2.1028 -            this.buttonAlignRight.Size = new System.Drawing.Size(75, 23);
  2.1029 -            this.buttonAlignRight.TabIndex = 20;
  2.1030 -            this.buttonAlignRight.Text = "Align Right";
  2.1031 -            this.buttonAlignRight.UseVisualStyleBackColor = true;
  2.1032 -            this.buttonAlignRight.Click += new System.EventHandler(this.buttonAlignRight_Click);
  2.1033 -            // 
  2.1034 -            // buttonAlignCenter
  2.1035 -            // 
  2.1036 -            this.buttonAlignCenter.Location = new System.Drawing.Point(89, 81);
  2.1037 -            this.buttonAlignCenter.Name = "buttonAlignCenter";
  2.1038 -            this.buttonAlignCenter.Size = new System.Drawing.Size(75, 23);
  2.1039 -            this.buttonAlignCenter.TabIndex = 19;
  2.1040 -            this.buttonAlignCenter.Text = "Align Center";
  2.1041 -            this.buttonAlignCenter.UseVisualStyleBackColor = true;
  2.1042 -            this.buttonAlignCenter.Click += new System.EventHandler(this.buttonAlignCenter_Click);
  2.1043 -            // 
  2.1044 -            // buttonAlignLeft
  2.1045 -            // 
  2.1046 -            this.buttonAlignLeft.Location = new System.Drawing.Point(7, 81);
  2.1047 -            this.buttonAlignLeft.Name = "buttonAlignLeft";
  2.1048 -            this.buttonAlignLeft.Size = new System.Drawing.Size(75, 23);
  2.1049 -            this.buttonAlignLeft.TabIndex = 18;
  2.1050 -            this.buttonAlignLeft.Text = "Align Left";
  2.1051 -            this.buttonAlignLeft.UseVisualStyleBackColor = true;
  2.1052 -            this.buttonAlignLeft.Click += new System.EventHandler(this.buttonAlignLeft_Click);
  2.1053 -            // 
  2.1054 -            // buttonRemoveColumn
  2.1055 -            // 
  2.1056 -            this.buttonRemoveColumn.Location = new System.Drawing.Point(88, 37);
  2.1057 -            this.buttonRemoveColumn.Name = "buttonRemoveColumn";
  2.1058 -            this.buttonRemoveColumn.Size = new System.Drawing.Size(75, 23);
  2.1059 -            this.buttonRemoveColumn.TabIndex = 3;
  2.1060 -            this.buttonRemoveColumn.Text = "Remove col.";
  2.1061 -            this.buttonRemoveColumn.UseVisualStyleBackColor = true;
  2.1062 -            this.buttonRemoveColumn.Click += new System.EventHandler(this.buttonRemoveColumn_Click);
  2.1063 -            // 
  2.1064 -            // buttonAddColumn
  2.1065 -            // 
  2.1066 -            this.buttonAddColumn.Location = new System.Drawing.Point(89, 7);
  2.1067 -            this.buttonAddColumn.Name = "buttonAddColumn";
  2.1068 -            this.buttonAddColumn.Size = new System.Drawing.Size(75, 23);
  2.1069 -            this.buttonAddColumn.TabIndex = 2;
  2.1070 -            this.buttonAddColumn.Text = "Add column";
  2.1071 -            this.buttonAddColumn.UseVisualStyleBackColor = true;
  2.1072 -            this.buttonAddColumn.Click += new System.EventHandler(this.buttonAddColumn_Click);
  2.1073 -            // 
  2.1074 -            // checkBoxReverseScreen
  2.1075 -            // 
  2.1076 -            this.checkBoxReverseScreen.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
  2.1077 -            this.checkBoxReverseScreen.AutoSize = true;
  2.1078 -            this.checkBoxReverseScreen.Location = new System.Drawing.Point(485, 6);
  2.1079 -            this.checkBoxReverseScreen.Name = "checkBoxReverseScreen";
  2.1080 -            this.checkBoxReverseScreen.Size = new System.Drawing.Size(101, 17);
  2.1081 -            this.checkBoxReverseScreen.TabIndex = 14;
  2.1082 -            this.checkBoxReverseScreen.Text = "Reverse screen";
  2.1083 -            this.checkBoxReverseScreen.UseVisualStyleBackColor = true;
  2.1084 -            this.checkBoxReverseScreen.CheckedChanged += new System.EventHandler(this.checkBoxReverseScreen_CheckedChanged);
  2.1085 -            // 
  2.1086 -            // buttonRemoveRow
  2.1087 -            // 
  2.1088 -            this.buttonRemoveRow.Location = new System.Drawing.Point(7, 37);
  2.1089 -            this.buttonRemoveRow.Name = "buttonRemoveRow";
  2.1090 -            this.buttonRemoveRow.Size = new System.Drawing.Size(75, 23);
  2.1091 -            this.buttonRemoveRow.TabIndex = 1;
  2.1092 -            this.buttonRemoveRow.Text = "Remove row";
  2.1093 -            this.buttonRemoveRow.UseVisualStyleBackColor = true;
  2.1094 -            this.buttonRemoveRow.Click += new System.EventHandler(this.buttonRemoveRow_Click);
  2.1095 -            // 
  2.1096 -            // buttonAddRow
  2.1097 -            // 
  2.1098 -            this.buttonAddRow.Location = new System.Drawing.Point(7, 7);
  2.1099 -            this.buttonAddRow.Name = "buttonAddRow";
  2.1100 -            this.buttonAddRow.Size = new System.Drawing.Size(75, 23);
  2.1101 -            this.buttonAddRow.TabIndex = 0;
  2.1102 -            this.buttonAddRow.Text = "Add row";
  2.1103 -            this.buttonAddRow.UseVisualStyleBackColor = true;
  2.1104 -            this.buttonAddRow.Click += new System.EventHandler(this.buttonAddRow_Click);
  2.1105 -            // 
  2.1106 -            // tabPageApp
  2.1107 -            // 
  2.1108 -            this.tabPageApp.Controls.Add(this.checkBoxStartMinimized);
  2.1109 -            this.tabPageApp.Controls.Add(this.checkBoxMinimizeToTray);
  2.1110 -            this.tabPageApp.Controls.Add(this.checkBoxAutoStart);
  2.1111 -            this.tabPageApp.Controls.Add(this.buttonUpdate);
  2.1112 -            this.tabPageApp.Location = new System.Drawing.Point(4, 22);
  2.1113 -            this.tabPageApp.Name = "tabPageApp";
  2.1114 -            this.tabPageApp.Padding = new System.Windows.Forms.Padding(3);
  2.1115 -            this.tabPageApp.Size = new System.Drawing.Size(592, 242);
  2.1116 -            this.tabPageApp.TabIndex = 4;
  2.1117 -            this.tabPageApp.Text = "Application";
  2.1118 -            this.tabPageApp.UseVisualStyleBackColor = true;
  2.1119 -            // 
  2.1120 -            // checkBoxStartMinimized
  2.1121 -            // 
  2.1122 -            this.checkBoxStartMinimized.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
  2.1123 -            this.checkBoxStartMinimized.AutoSize = true;
  2.1124 -            this.checkBoxStartMinimized.Location = new System.Drawing.Point(8, 144);
  2.1125 -            this.checkBoxStartMinimized.Name = "checkBoxStartMinimized";
  2.1126 -            this.checkBoxStartMinimized.Size = new System.Drawing.Size(96, 17);
  2.1127 -            this.checkBoxStartMinimized.TabIndex = 16;
  2.1128 -            this.checkBoxStartMinimized.Text = "Start minimized";
  2.1129 -            this.checkBoxStartMinimized.UseVisualStyleBackColor = true;
  2.1130 -            this.checkBoxStartMinimized.CheckedChanged += new System.EventHandler(this.checkBoxStartMinimized_CheckedChanged);
  2.1131 -            // 
  2.1132 -            // checkBoxMinimizeToTray
  2.1133 -            // 
  2.1134 -            this.checkBoxMinimizeToTray.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
  2.1135 -            this.checkBoxMinimizeToTray.AutoSize = true;
  2.1136 -            this.checkBoxMinimizeToTray.Location = new System.Drawing.Point(8, 167);
  2.1137 -            this.checkBoxMinimizeToTray.Name = "checkBoxMinimizeToTray";
  2.1138 -            this.checkBoxMinimizeToTray.Size = new System.Drawing.Size(133, 17);
  2.1139 -            this.checkBoxMinimizeToTray.TabIndex = 15;
  2.1140 -            this.checkBoxMinimizeToTray.Text = "Minimize to system tray";
  2.1141 -            this.checkBoxMinimizeToTray.UseVisualStyleBackColor = true;
  2.1142 -            this.checkBoxMinimizeToTray.CheckedChanged += new System.EventHandler(this.checkBoxMinimizeToTray_CheckedChanged);
  2.1143 -            // 
  2.1144 -            // checkBoxAutoStart
  2.1145 -            // 
  2.1146 -            this.checkBoxAutoStart.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
  2.1147 -            this.checkBoxAutoStart.AutoSize = true;
  2.1148 -            this.checkBoxAutoStart.Location = new System.Drawing.Point(8, 190);
  2.1149 -            this.checkBoxAutoStart.Name = "checkBoxAutoStart";
  2.1150 -            this.checkBoxAutoStart.Size = new System.Drawing.Size(143, 17);
  2.1151 -            this.checkBoxAutoStart.TabIndex = 14;
  2.1152 -            this.checkBoxAutoStart.Text = "Run on Windows startup";
  2.1153 -            this.checkBoxAutoStart.UseVisualStyleBackColor = true;
  2.1154 -            this.checkBoxAutoStart.CheckedChanged += new System.EventHandler(this.checkBoxAutoStart_CheckedChanged);
  2.1155 -            // 
  2.1156 -            // buttonUpdate
  2.1157 -            // 
  2.1158 -            this.buttonUpdate.Location = new System.Drawing.Point(6, 213);
  2.1159 -            this.buttonUpdate.Name = "buttonUpdate";
  2.1160 -            this.buttonUpdate.Size = new System.Drawing.Size(75, 23);
  2.1161 -            this.buttonUpdate.TabIndex = 0;
  2.1162 -            this.buttonUpdate.Text = "Update";
  2.1163 -            this.buttonUpdate.UseVisualStyleBackColor = true;
  2.1164 -            this.buttonUpdate.Click += new System.EventHandler(this.buttonUpdate_Click);
  2.1165 -            // 
  2.1166 -            // labelFontWidth
  2.1167 -            // 
  2.1168 -            this.labelFontWidth.AutoSize = true;
  2.1169 -            this.labelFontWidth.Location = new System.Drawing.Point(13, 29);
  2.1170 -            this.labelFontWidth.Name = "labelFontWidth";
  2.1171 -            this.labelFontWidth.Size = new System.Drawing.Size(56, 13);
  2.1172 -            this.labelFontWidth.TabIndex = 19;
  2.1173 -            this.labelFontWidth.Text = "Font width";
  2.1174 -            // 
  2.1175 -            // labelFontHeight
  2.1176 -            // 
  2.1177 -            this.labelFontHeight.AutoSize = true;
  2.1178 -            this.labelFontHeight.Location = new System.Drawing.Point(13, 46);
  2.1179 -            this.labelFontHeight.Name = "labelFontHeight";
  2.1180 -            this.labelFontHeight.Size = new System.Drawing.Size(60, 13);
  2.1181 -            this.labelFontHeight.TabIndex = 20;
  2.1182 -            this.labelFontHeight.Text = "Font height";
  2.1183 -            // 
  2.1184 -            // pictureBoxDemo
  2.1185 -            // 
  2.1186 -            this.pictureBoxDemo.Location = new System.Drawing.Point(478, 54);
  2.1187 -            this.pictureBoxDemo.Name = "pictureBoxDemo";
  2.1188 -            this.pictureBoxDemo.Size = new System.Drawing.Size(100, 50);
  2.1189 -            this.pictureBoxDemo.TabIndex = 21;
  2.1190 -            this.pictureBoxDemo.TabStop = false;
  2.1191 -            // 
  2.1192 -            // MainForm
  2.1193 -            // 
  2.1194 -            this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
  2.1195 -            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
  2.1196 -            this.ClientSize = new System.Drawing.Size(624, 442);
  2.1197 -            this.Controls.Add(this.pictureBoxDemo);
  2.1198 -            this.Controls.Add(this.labelFontHeight);
  2.1199 -            this.Controls.Add(this.labelFontWidth);
  2.1200 -            this.Controls.Add(this.labelWarning);
  2.1201 -            this.Controls.Add(this.statusStrip);
  2.1202 -            this.Controls.Add(this.tabControl);
  2.1203 -            this.Controls.Add(this.panelDisplay);
  2.1204 -            this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
  2.1205 -            this.MinimumSize = new System.Drawing.Size(640, 480);
  2.1206 -            this.Name = "MainForm";
  2.1207 -            this.Text = "Sharp Display Manager";
  2.1208 -            this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.MainForm_FormClosing);
  2.1209 -            this.Load += new System.EventHandler(this.MainForm_Load);
  2.1210 -            this.SizeChanged += new System.EventHandler(this.MainForm_SizeChanged);
  2.1211 -            this.Resize += new System.EventHandler(this.MainForm_Resize);
  2.1212 -            this.panelDisplay.ResumeLayout(false);
  2.1213 -            this.tableLayoutPanel.ResumeLayout(false);
  2.1214 -            this.tableLayoutPanel.PerformLayout();
  2.1215 -            this.statusStrip.ResumeLayout(false);
  2.1216 -            this.statusStrip.PerformLayout();
  2.1217 -            this.tabPageClients.ResumeLayout(false);
  2.1218 -            this.tabPageDisplay.ResumeLayout(false);
  2.1219 -            this.tabPageDisplay.PerformLayout();
  2.1220 -            ((System.ComponentModel.ISupportInitialize)(this.trackBarBrightness)).EndInit();
  2.1221 -            this.tabControl.ResumeLayout(false);
  2.1222 -            this.tabPageDesign.ResumeLayout(false);
  2.1223 -            this.tabPageDesign.PerformLayout();
  2.1224 -            this.tabPageApp.ResumeLayout(false);
  2.1225 -            this.tabPageApp.PerformLayout();
  2.1226 -            ((System.ComponentModel.ISupportInitialize)(this.pictureBoxDemo)).EndInit();
  2.1227 -            this.ResumeLayout(false);
  2.1228 -            this.PerformLayout();
  2.1229 +			this.tabControl.Controls.Add(this.tabPageDisplay);
  2.1230 +			this.tabControl.Controls.Add(this.tabPageClients);
  2.1231 +			this.tabControl.Controls.Add(this.tabPageDesign);
  2.1232 +			this.tabControl.Controls.Add(this.tabPageApp);
  2.1233 +			this.tabControl.Location = new System.Drawing.Point(12, 139);
  2.1234 +			this.tabControl.Name = "tabControl";
  2.1235 +			this.tabControl.SelectedIndex = 0;
  2.1236 +			this.tabControl.Size = new System.Drawing.Size(600, 268);
  2.1237 +			this.tabControl.TabIndex = 0;
  2.1238 +			// 
  2.1239 +			// tabPageDesign
  2.1240 +			// 
  2.1241 +			this.tabPageDesign.Controls.Add(this.labelScrollLoopSeparator);
  2.1242 +			this.tabPageDesign.Controls.Add(this.textBoxScrollLoopSeparator);
  2.1243 +			this.tabPageDesign.Controls.Add(this.labelMinFontSize);
  2.1244 +			this.tabPageDesign.Controls.Add(this.maskedTextBoxMinFontSize);
  2.1245 +			this.tabPageDesign.Controls.Add(this.checkBoxScaleToFit);
  2.1246 +			this.tabPageDesign.Controls.Add(this.checkBoxInverseColors);
  2.1247 +			this.tabPageDesign.Controls.Add(this.buttonAlignRight);
  2.1248 +			this.tabPageDesign.Controls.Add(this.buttonAlignCenter);
  2.1249 +			this.tabPageDesign.Controls.Add(this.buttonAlignLeft);
  2.1250 +			this.tabPageDesign.Controls.Add(this.buttonRemoveColumn);
  2.1251 +			this.tabPageDesign.Controls.Add(this.checkBoxFixedPitchFontOnly);
  2.1252 +			this.tabPageDesign.Controls.Add(this.buttonAddColumn);
  2.1253 +			this.tabPageDesign.Controls.Add(this.buttonFont);
  2.1254 +			this.tabPageDesign.Controls.Add(this.checkBoxReverseScreen);
  2.1255 +			this.tabPageDesign.Controls.Add(this.buttonRemoveRow);
  2.1256 +			this.tabPageDesign.Controls.Add(this.buttonAddRow);
  2.1257 +			this.tabPageDesign.Controls.Add(this.checkBoxShowBorders);
  2.1258 +			this.tabPageDesign.Location = new System.Drawing.Point(4, 22);
  2.1259 +			this.tabPageDesign.Name = "tabPageDesign";
  2.1260 +			this.tabPageDesign.Padding = new System.Windows.Forms.Padding(3);
  2.1261 +			this.tabPageDesign.Size = new System.Drawing.Size(592, 242);
  2.1262 +			this.tabPageDesign.TabIndex = 3;
  2.1263 +			this.tabPageDesign.Text = "Design";
  2.1264 +			this.tabPageDesign.UseVisualStyleBackColor = true;
  2.1265 +			// 
  2.1266 +			// labelScrollLoopSeparator
  2.1267 +			// 
  2.1268 +			this.labelScrollLoopSeparator.AutoSize = true;
  2.1269 +			this.labelScrollLoopSeparator.Location = new System.Drawing.Point(84, 145);
  2.1270 +			this.labelScrollLoopSeparator.Name = "labelScrollLoopSeparator";
  2.1271 +			this.labelScrollLoopSeparator.Size = new System.Drawing.Size(109, 13);
  2.1272 +			this.labelScrollLoopSeparator.TabIndex = 26;
  2.1273 +			this.labelScrollLoopSeparator.Text = "Scroll loop separator :";
  2.1274 +			// 
  2.1275 +			// textBoxScrollLoopSeparator
  2.1276 +			// 
  2.1277 +			this.textBoxScrollLoopSeparator.Location = new System.Drawing.Point(205, 142);
  2.1278 +			this.textBoxScrollLoopSeparator.Name = "textBoxScrollLoopSeparator";
  2.1279 +			this.textBoxScrollLoopSeparator.Size = new System.Drawing.Size(74, 20);
  2.1280 +			this.textBoxScrollLoopSeparator.TabIndex = 25;
  2.1281 +			this.textBoxScrollLoopSeparator.TextChanged += new System.EventHandler(this.textBoxScrollLoopSeparator_TextChanged);
  2.1282 +			// 
  2.1283 +			// labelMinFontSize
  2.1284 +			// 
  2.1285 +			this.labelMinFontSize.AutoSize = true;
  2.1286 +			this.labelMinFontSize.Location = new System.Drawing.Point(84, 194);
  2.1287 +			this.labelMinFontSize.Name = "labelMinFontSize";
  2.1288 +			this.labelMinFontSize.Size = new System.Drawing.Size(119, 13);
  2.1289 +			this.labelMinFontSize.TabIndex = 24;
  2.1290 +			this.labelMinFontSize.Text = "Minimum font size (pts) :";
  2.1291 +			// 
  2.1292 +			// maskedTextBoxMinFontSize
  2.1293 +			// 
  2.1294 +			this.maskedTextBoxMinFontSize.Location = new System.Drawing.Point(205, 191);
  2.1295 +			this.maskedTextBoxMinFontSize.Mask = "000";
  2.1296 +			this.maskedTextBoxMinFontSize.Name = "maskedTextBoxMinFontSize";
  2.1297 +			this.maskedTextBoxMinFontSize.PromptChar = ' ';
  2.1298 +			this.maskedTextBoxMinFontSize.Size = new System.Drawing.Size(24, 20);
  2.1299 +			this.maskedTextBoxMinFontSize.TabIndex = 23;
  2.1300 +			this.maskedTextBoxMinFontSize.TextChanged += new System.EventHandler(this.maskedTextBoxMinFontSize_TextChanged);
  2.1301 +			// 
  2.1302 +			// checkBoxScaleToFit
  2.1303 +			// 
  2.1304 +			this.checkBoxScaleToFit.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
  2.1305 +			this.checkBoxScaleToFit.AutoSize = true;
  2.1306 +			this.checkBoxScaleToFit.Location = new System.Drawing.Point(87, 168);
  2.1307 +			this.checkBoxScaleToFit.Name = "checkBoxScaleToFit";
  2.1308 +			this.checkBoxScaleToFit.Size = new System.Drawing.Size(201, 17);
  2.1309 +			this.checkBoxScaleToFit.TabIndex = 22;
  2.1310 +			this.checkBoxScaleToFit.Text = "Try scale font down to avoid scrolling";
  2.1311 +			this.checkBoxScaleToFit.UseVisualStyleBackColor = true;
  2.1312 +			this.checkBoxScaleToFit.CheckedChanged += new System.EventHandler(this.checkBoxScaleToFit_CheckedChanged);
  2.1313 +			// 
  2.1314 +			// checkBoxInverseColors
  2.1315 +			// 
  2.1316 +			this.checkBoxInverseColors.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
  2.1317 +			this.checkBoxInverseColors.AutoSize = true;
  2.1318 +			this.checkBoxInverseColors.Location = new System.Drawing.Point(485, 52);
  2.1319 +			this.checkBoxInverseColors.Name = "checkBoxInverseColors";
  2.1320 +			this.checkBoxInverseColors.Size = new System.Drawing.Size(92, 17);
  2.1321 +			this.checkBoxInverseColors.TabIndex = 21;
  2.1322 +			this.checkBoxInverseColors.Text = "Inverse colors";
  2.1323 +			this.checkBoxInverseColors.UseVisualStyleBackColor = true;
  2.1324 +			this.checkBoxInverseColors.CheckedChanged += new System.EventHandler(this.checkBoxInverseColors_CheckedChanged);
  2.1325 +			// 
  2.1326 +			// buttonAlignRight
  2.1327 +			// 
  2.1328 +			this.buttonAlignRight.Location = new System.Drawing.Point(170, 81);
  2.1329 +			this.buttonAlignRight.Name = "buttonAlignRight";
  2.1330 +			this.buttonAlignRight.Size = new System.Drawing.Size(75, 23);
  2.1331 +			this.buttonAlignRight.TabIndex = 20;
  2.1332 +			this.buttonAlignRight.Text = "Align Right";
  2.1333 +			this.buttonAlignRight.UseVisualStyleBackColor = true;
  2.1334 +			this.buttonAlignRight.Click += new System.EventHandler(this.buttonAlignRight_Click);
  2.1335 +			// 
  2.1336 +			// buttonAlignCenter
  2.1337 +			// 
  2.1338 +			this.buttonAlignCenter.Location = new System.Drawing.Point(89, 81);
  2.1339 +			this.buttonAlignCenter.Name = "buttonAlignCenter";
  2.1340 +			this.buttonAlignCenter.Size = new System.Drawing.Size(75, 23);
  2.1341 +			this.buttonAlignCenter.TabIndex = 19;
  2.1342 +			this.buttonAlignCenter.Text = "Align Center";
  2.1343 +			this.buttonAlignCenter.UseVisualStyleBackColor = true;
  2.1344 +			this.buttonAlignCenter.Click += new System.EventHandler(this.buttonAlignCenter_Click);
  2.1345 +			// 
  2.1346 +			// buttonAlignLeft
  2.1347 +			// 
  2.1348 +			this.buttonAlignLeft.Location = new System.Drawing.Point(7, 81);
  2.1349 +			this.buttonAlignLeft.Name = "buttonAlignLeft";
  2.1350 +			this.buttonAlignLeft.Size = new System.Drawing.Size(75, 23);
  2.1351 +			this.buttonAlignLeft.TabIndex = 18;
  2.1352 +			this.buttonAlignLeft.Text = "Align Left";
  2.1353 +			this.buttonAlignLeft.UseVisualStyleBackColor = true;
  2.1354 +			this.buttonAlignLeft.Click += new System.EventHandler(this.buttonAlignLeft_Click);
  2.1355 +			// 
  2.1356 +			// buttonRemoveColumn
  2.1357 +			// 
  2.1358 +			this.buttonRemoveColumn.Location = new System.Drawing.Point(88, 37);
  2.1359 +			this.buttonRemoveColumn.Name = "buttonRemoveColumn";
  2.1360 +			this.buttonRemoveColumn.Size = new System.Drawing.Size(75, 23);
  2.1361 +			this.buttonRemoveColumn.TabIndex = 3;
  2.1362 +			this.buttonRemoveColumn.Text = "Remove col.";
  2.1363 +			this.buttonRemoveColumn.UseVisualStyleBackColor = true;
  2.1364 +			this.buttonRemoveColumn.Click += new System.EventHandler(this.buttonRemoveColumn_Click);
  2.1365 +			// 
  2.1366 +			// buttonAddColumn
  2.1367 +			// 
  2.1368 +			this.buttonAddColumn.Location = new System.Drawing.Point(89, 7);
  2.1369 +			this.buttonAddColumn.Name = "buttonAddColumn";
  2.1370 +			this.buttonAddColumn.Size = new System.Drawing.Size(75, 23);
  2.1371 +			this.buttonAddColumn.TabIndex = 2;
  2.1372 +			this.buttonAddColumn.Text = "Add column";
  2.1373 +			this.buttonAddColumn.UseVisualStyleBackColor = true;
  2.1374 +			this.buttonAddColumn.Click += new System.EventHandler(this.buttonAddColumn_Click);
  2.1375 +			// 
  2.1376 +			// checkBoxReverseScreen
  2.1377 +			// 
  2.1378 +			this.checkBoxReverseScreen.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
  2.1379 +			this.checkBoxReverseScreen.AutoSize = true;
  2.1380 +			this.checkBoxReverseScreen.Location = new System.Drawing.Point(485, 6);
  2.1381 +			this.checkBoxReverseScreen.Name = "checkBoxReverseScreen";
  2.1382 +			this.checkBoxReverseScreen.Size = new System.Drawing.Size(101, 17);
  2.1383 +			this.checkBoxReverseScreen.TabIndex = 14;
  2.1384 +			this.checkBoxReverseScreen.Text = "Reverse screen";
  2.1385 +			this.checkBoxReverseScreen.UseVisualStyleBackColor = true;
  2.1386 +			this.checkBoxReverseScreen.CheckedChanged += new System.EventHandler(this.checkBoxReverseScreen_CheckedChanged);
  2.1387 +			// 
  2.1388 +			// buttonRemoveRow
  2.1389 +			// 
  2.1390 +			this.buttonRemoveRow.Location = new System.Drawing.Point(7, 37);
  2.1391 +			this.buttonRemoveRow.Name = "buttonRemoveRow";
  2.1392 +			this.buttonRemoveRow.Size = new System.Drawing.Size(75, 23);
  2.1393 +			this.buttonRemoveRow.TabIndex = 1;
  2.1394 +			this.buttonRemoveRow.Text = "Remove row";
  2.1395 +			this.buttonRemoveRow.UseVisualStyleBackColor = true;
  2.1396 +			this.buttonRemoveRow.Click += new System.EventHandler(this.buttonRemoveRow_Click);
  2.1397 +			// 
  2.1398 +			// buttonAddRow
  2.1399 +			// 
  2.1400 +			this.buttonAddRow.Location = new System.Drawing.Point(7, 7);
  2.1401 +			this.buttonAddRow.Name = "buttonAddRow";
  2.1402 +			this.buttonAddRow.Size = new System.Drawing.Size(75, 23);
  2.1403 +			this.buttonAddRow.TabIndex = 0;
  2.1404 +			this.buttonAddRow.Text = "Add row";
  2.1405 +			this.buttonAddRow.UseVisualStyleBackColor = true;
  2.1406 +			this.buttonAddRow.Click += new System.EventHandler(this.buttonAddRow_Click);
  2.1407 +			// 
  2.1408 +			// tabPageApp
  2.1409 +			// 
  2.1410 +			this.tabPageApp.Controls.Add(this.checkBoxStartMinimized);
  2.1411 +			this.tabPageApp.Controls.Add(this.checkBoxMinimizeToTray);
  2.1412 +			this.tabPageApp.Controls.Add(this.checkBoxAutoStart);
  2.1413 +			this.tabPageApp.Controls.Add(this.buttonUpdate);
  2.1414 +			this.tabPageApp.Location = new System.Drawing.Point(4, 22);
  2.1415 +			this.tabPageApp.Name = "tabPageApp";
  2.1416 +			this.tabPageApp.Padding = new System.Windows.Forms.Padding(3);
  2.1417 +			this.tabPageApp.Size = new System.Drawing.Size(592, 242);
  2.1418 +			this.tabPageApp.TabIndex = 4;
  2.1419 +			this.tabPageApp.Text = "Application";
  2.1420 +			this.tabPageApp.UseVisualStyleBackColor = true;
  2.1421 +			// 
  2.1422 +			// checkBoxStartMinimized
  2.1423 +			// 
  2.1424 +			this.checkBoxStartMinimized.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
  2.1425 +			this.checkBoxStartMinimized.AutoSize = true;
  2.1426 +			this.checkBoxStartMinimized.Location = new System.Drawing.Point(8, 144);
  2.1427 +			this.checkBoxStartMinimized.Name = "checkBoxStartMinimized";
  2.1428 +			this.checkBoxStartMinimized.Size = new System.Drawing.Size(96, 17);
  2.1429 +			this.checkBoxStartMinimized.TabIndex = 16;
  2.1430 +			this.checkBoxStartMinimized.Text = "Start minimized";
  2.1431 +			this.checkBoxStartMinimized.UseVisualStyleBackColor = true;
  2.1432 +			this.checkBoxStartMinimized.CheckedChanged += new System.EventHandler(this.checkBoxStartMinimized_CheckedChanged);
  2.1433 +			// 
  2.1434 +			// checkBoxMinimizeToTray
  2.1435 +			// 
  2.1436 +			this.checkBoxMinimizeToTray.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
  2.1437 +			this.checkBoxMinimizeToTray.AutoSize = true;
  2.1438 +			this.checkBoxMinimizeToTray.Location = new System.Drawing.Point(8, 167);
  2.1439 +			this.checkBoxMinimizeToTray.Name = "checkBoxMinimizeToTray";
  2.1440 +			this.checkBoxMinimizeToTray.Size = new System.Drawing.Size(133, 17);
  2.1441 +			this.checkBoxMinimizeToTray.TabIndex = 15;
  2.1442 +			this.checkBoxMinimizeToTray.Text = "Minimize to system tray";
  2.1443 +			this.checkBoxMinimizeToTray.UseVisualStyleBackColor = true;
  2.1444 +			this.checkBoxMinimizeToTray.CheckedChanged += new System.EventHandler(this.checkBoxMinimizeToTray_CheckedChanged);
  2.1445 +			// 
  2.1446 +			// checkBoxAutoStart
  2.1447 +			// 
  2.1448 +			this.checkBoxAutoStart.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
  2.1449 +			this.checkBoxAutoStart.AutoSize = true;
  2.1450 +			this.checkBoxAutoStart.Location = new System.Drawing.Point(8, 190);
  2.1451 +			this.checkBoxAutoStart.Name = "checkBoxAutoStart";
  2.1452 +			this.checkBoxAutoStart.Size = new System.Drawing.Size(143, 17);
  2.1453 +			this.checkBoxAutoStart.TabIndex = 14;
  2.1454 +			this.checkBoxAutoStart.Text = "Run on Windows startup";
  2.1455 +			this.checkBoxAutoStart.UseVisualStyleBackColor = true;
  2.1456 +			this.checkBoxAutoStart.CheckedChanged += new System.EventHandler(this.checkBoxAutoStart_CheckedChanged);
  2.1457 +			// 
  2.1458 +			// buttonUpdate
  2.1459 +			// 
  2.1460 +			this.buttonUpdate.Location = new System.Drawing.Point(6, 213);
  2.1461 +			this.buttonUpdate.Name = "buttonUpdate";
  2.1462 +			this.buttonUpdate.Size = new System.Drawing.Size(75, 23);
  2.1463 +			this.buttonUpdate.TabIndex = 0;
  2.1464 +			this.buttonUpdate.Text = "Update";
  2.1465 +			this.buttonUpdate.UseVisualStyleBackColor = true;
  2.1466 +			this.buttonUpdate.Click += new System.EventHandler(this.buttonUpdate_Click);
  2.1467 +			// 
  2.1468 +			// labelFontWidth
  2.1469 +			// 
  2.1470 +			this.labelFontWidth.AutoSize = true;
  2.1471 +			this.labelFontWidth.Location = new System.Drawing.Point(13, 29);
  2.1472 +			this.labelFontWidth.Name = "labelFontWidth";
  2.1473 +			this.labelFontWidth.Size = new System.Drawing.Size(56, 13);
  2.1474 +			this.labelFontWidth.TabIndex = 19;
  2.1475 +			this.labelFontWidth.Text = "Font width";
  2.1476 +			// 
  2.1477 +			// labelFontHeight
  2.1478 +			// 
  2.1479 +			this.labelFontHeight.AutoSize = true;
  2.1480 +			this.labelFontHeight.Location = new System.Drawing.Point(13, 46);
  2.1481 +			this.labelFontHeight.Name = "labelFontHeight";
  2.1482 +			this.labelFontHeight.Size = new System.Drawing.Size(60, 13);
  2.1483 +			this.labelFontHeight.TabIndex = 20;
  2.1484 +			this.labelFontHeight.Text = "Font height";
  2.1485 +			// 
  2.1486 +			// pictureBoxDemo
  2.1487 +			// 
  2.1488 +			this.pictureBoxDemo.Location = new System.Drawing.Point(478, 54);
  2.1489 +			this.pictureBoxDemo.Name = "pictureBoxDemo";
  2.1490 +			this.pictureBoxDemo.Size = new System.Drawing.Size(100, 50);
  2.1491 +			this.pictureBoxDemo.TabIndex = 21;
  2.1492 +			this.pictureBoxDemo.TabStop = false;
  2.1493 +			// 
  2.1494 +			// MainForm
  2.1495 +			// 
  2.1496 +			this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
  2.1497 +			this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
  2.1498 +			this.ClientSize = new System.Drawing.Size(624, 442);
  2.1499 +			this.Controls.Add(this.pictureBoxDemo);
  2.1500 +			this.Controls.Add(this.labelFontHeight);
  2.1501 +			this.Controls.Add(this.labelFontWidth);
  2.1502 +			this.Controls.Add(this.labelWarning);
  2.1503 +			this.Controls.Add(this.statusStrip);
  2.1504 +			this.Controls.Add(this.tabControl);
  2.1505 +			this.Controls.Add(this.panelDisplay);
  2.1506 +			this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
  2.1507 +			this.MinimumSize = new System.Drawing.Size(640, 480);
  2.1508 +			this.Name = "MainForm";
  2.1509 +			this.Text = "Sharp Display Manager";
  2.1510 +			this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.MainForm_FormClosing);
  2.1511 +			this.Load += new System.EventHandler(this.MainForm_Load);
  2.1512 +			this.SizeChanged += new System.EventHandler(this.MainForm_SizeChanged);
  2.1513 +			this.Resize += new System.EventHandler(this.MainForm_Resize);
  2.1514 +			this.panelDisplay.ResumeLayout(false);
  2.1515 +			this.tableLayoutPanel.ResumeLayout(false);
  2.1516 +			this.tableLayoutPanel.PerformLayout();
  2.1517 +			this.statusStrip.ResumeLayout(false);
  2.1518 +			this.statusStrip.PerformLayout();
  2.1519 +			this.tabPageClients.ResumeLayout(false);
  2.1520 +			this.tabPageDisplay.ResumeLayout(false);
  2.1521 +			this.tabPageDisplay.PerformLayout();
  2.1522 +			((System.ComponentModel.ISupportInitialize)(this.trackBarBrightness)).EndInit();
  2.1523 +			this.tabControl.ResumeLayout(false);
  2.1524 +			this.tabPageDesign.ResumeLayout(false);
  2.1525 +			this.tabPageDesign.PerformLayout();
  2.1526 +			this.tabPageApp.ResumeLayout(false);
  2.1527 +			this.tabPageApp.PerformLayout();
  2.1528 +			((System.ComponentModel.ISupportInitialize)(this.pictureBoxDemo)).EndInit();
  2.1529 +			this.ResumeLayout(false);
  2.1530 +			this.PerformLayout();
  2.1531  
  2.1532          }
  2.1533  
     3.1 --- a/Server/MainForm.cs	Wed Feb 04 17:44:25 2015 +0100
     3.2 +++ b/Server/MainForm.cs	Wed Feb 04 21:55:45 2015 +0100
     3.3 @@ -108,6 +108,14 @@
     3.4  		/// <param name="aDisplay"></param>
     3.5  		private void OnDisplayOpened(Display aDisplay)
     3.6  		{
     3.7 +			//Set our screen size now that our display is connected
     3.8 +			//Our panelDisplay is the container of our tableLayoutPanel
     3.9 +			//tableLayoutPanel will resize itself to fit the client size of our panelDisplay
    3.10 +			//panelDisplay needs an extra 2 pixels for borders on each sides
    3.11 +			//tableLayoutPanel will eventually be the exact size of our display
    3.12 +			Size size = new Size(iDisplay.WidthInPixels() + 2, iDisplay.HeightInPixels() + 2);
    3.13 +			panelDisplay.Size = size;
    3.14 +
    3.15  			//Our display was just opened, update our UI
    3.16  			UpdateStatus();
    3.17  			//Initiate asynchronous request
    3.18 @@ -692,18 +700,29 @@
    3.19  				//We have a display connection
    3.20  				//Reflect that in our UI
    3.21  
    3.22 -				//Set our screen size
    3.23 -				tableLayoutPanel.Width = iDisplay.WidthInPixels();
    3.24 -				tableLayoutPanel.Height = iDisplay.HeightInPixels();
    3.25  				tableLayoutPanel.Enabled = true;
    3.26 +				panelDisplay.Enabled = true;
    3.27  
    3.28                  //Only setup brightness if display is open
    3.29                  trackBarBrightness.Minimum = iDisplay.MinBrightness();
    3.30                  trackBarBrightness.Maximum = iDisplay.MaxBrightness();
    3.31 -                trackBarBrightness.Value = cds.Brightness;
    3.32 +				if (cds.Brightness < iDisplay.MinBrightness() || cds.Brightness > iDisplay.MaxBrightness())
    3.33 +				{
    3.34 +					//Brightness out of range, this can occur when using auto-detect
    3.35 +					//Use max brightness instead
    3.36 +					trackBarBrightness.Value = iDisplay.MaxBrightness();
    3.37 +					iDisplay.SetBrightness(iDisplay.MaxBrightness());
    3.38 +				}
    3.39 +				else
    3.40 +				{
    3.41 +					trackBarBrightness.Value = cds.Brightness;
    3.42 +					iDisplay.SetBrightness(cds.Brightness);
    3.43 +				}
    3.44 +
    3.45 +				//Try compute the steps to something that makes sense
    3.46                  trackBarBrightness.LargeChange = Math.Max(1, (iDisplay.MaxBrightness() - iDisplay.MinBrightness()) / 5);
    3.47                  trackBarBrightness.SmallChange = 1;
    3.48 -                iDisplay.SetBrightness(cds.Brightness);
    3.49 +                
    3.50                  //
    3.51                  buttonFill.Enabled = true;
    3.52                  buttonClear.Enabled = true;
    3.53 @@ -740,6 +759,7 @@
    3.54  				//Display is connection not available
    3.55  				//Reflect that in our UI
    3.56  				tableLayoutPanel.Enabled = false;
    3.57 +				panelDisplay.Enabled = false;
    3.58                  buttonFill.Enabled = false;
    3.59                  buttonClear.Enabled = false;
    3.60                  buttonOpen.Enabled = true;
    3.61 @@ -831,6 +851,7 @@
    3.62  
    3.63          private void MainForm_FormClosing(object sender, FormClosingEventArgs e)
    3.64          {
    3.65 +			CloseDisplayConnection();
    3.66              StopServer();
    3.67              e.Cancel = iClosing;
    3.68          }
    3.69 @@ -1700,8 +1721,17 @@
    3.70  
    3.71  		}
    3.72  
    3.73 -
    3.74 -
    3.75 +		/// <summary>
    3.76 +		/// 
    3.77 +		/// </summary>
    3.78 +		/// <param name="sender"></param>
    3.79 +		/// <param name="e"></param>
    3.80 +		private void tableLayoutPanel_SizeChanged(object sender, EventArgs e)
    3.81 +		{
    3.82 +			//Our table layout size has changed which means our display size has changed.
    3.83 +			//We need to re-create our bitmap.
    3.84 +			iCreateBitmap = true;
    3.85 +		}
    3.86  
    3.87      }
    3.88