# HG changeset patch # User StephaneLenclud # Date 1423083345 -3600 # Node ID 4196b0ca97d96bd4922c879da8ba8513c9b73cfc # Parent 189aac7dd3d61dfa87ba6b68ba0305c2639dfa70 Making display resize work. Clearing the display before when closing. diff -r 189aac7dd3d6 -r 4196b0ca97d9 Server/Display.cs --- a/Server/Display.cs Wed Feb 04 17:44:25 2015 +0100 +++ b/Server/Display.cs Wed Feb 04 21:55:45 2015 +0100 @@ -73,6 +73,11 @@ return; } + //Controversially clearing our screen before closing + //Consider moving this up into the UI layer + Clear(); + SwapBuffers(); + // MiniDisplayClose(iDevice); iDevice = IntPtr.Zero; //Broadcast closed event diff -r 189aac7dd3d6 -r 4196b0ca97d9 Server/MainForm.Designer.cs --- a/Server/MainForm.Designer.cs Wed Feb 04 17:44:25 2015 +0100 +++ b/Server/MainForm.Designer.cs Wed Feb 04 21:55:45 2015 +0100 @@ -37,773 +37,774 @@ /// private void InitializeComponent() { - this.components = new System.ComponentModel.Container(); - System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(MainForm)); - this.panelDisplay = new System.Windows.Forms.Panel(); - this.tableLayoutPanel = new System.Windows.Forms.TableLayoutPanel(); - this.marqueeLabelTop = new SharpDisplayManager.MarqueeLabel(); - this.marqueeLabelBottom = new SharpDisplayManager.MarqueeLabel(); - this.fontDialog = new System.Windows.Forms.FontDialog(); - this.timer = new System.Windows.Forms.Timer(this.components); - this.statusStrip = new System.Windows.Forms.StatusStrip(); - this.toolStripStatusLabelConnect = new System.Windows.Forms.ToolStripStatusLabel(); - this.toolStripStatusLabelSpring = new System.Windows.Forms.ToolStripStatusLabel(); - this.toolStripStatusLabelPower = new System.Windows.Forms.ToolStripStatusLabel(); - this.toolStripStatusLabelFps = new System.Windows.Forms.ToolStripStatusLabel(); - this.tabPageClients = new System.Windows.Forms.TabPage(); - this.buttonCloseClients = new System.Windows.Forms.Button(); - this.buttonStartClient = new System.Windows.Forms.Button(); - this.treeViewClients = new System.Windows.Forms.TreeView(); - this.tabPageDisplay = new System.Windows.Forms.TabPage(); - this.buttonShowClock = new System.Windows.Forms.Button(); - this.buttonHideClock = new System.Windows.Forms.Button(); - this.buttonPowerOff = new System.Windows.Forms.Button(); - this.buttonPowerOn = new System.Windows.Forms.Button(); - this.labelTimerInterval = new System.Windows.Forms.Label(); - this.maskedTextBoxTimerInterval = new System.Windows.Forms.MaskedTextBox(); - this.comboBoxDisplayType = new System.Windows.Forms.ComboBox(); - this.buttonSuspend = new System.Windows.Forms.Button(); - this.checkBoxConnectOnStartup = new System.Windows.Forms.CheckBox(); - this.trackBarBrightness = new System.Windows.Forms.TrackBar(); - this.buttonFill = new System.Windows.Forms.Button(); - this.buttonClear = new System.Windows.Forms.Button(); - this.buttonClose = new System.Windows.Forms.Button(); - this.buttonOpen = new System.Windows.Forms.Button(); - this.buttonCapture = new System.Windows.Forms.Button(); - this.labelWarning = new System.Windows.Forms.Label(); - this.checkBoxFixedPitchFontOnly = new System.Windows.Forms.CheckBox(); - this.checkBoxShowBorders = new System.Windows.Forms.CheckBox(); - this.buttonFont = new System.Windows.Forms.Button(); - this.tabControl = new System.Windows.Forms.TabControl(); - this.tabPageDesign = new System.Windows.Forms.TabPage(); - this.labelScrollLoopSeparator = new System.Windows.Forms.Label(); - this.textBoxScrollLoopSeparator = new System.Windows.Forms.TextBox(); - this.labelMinFontSize = new System.Windows.Forms.Label(); - this.maskedTextBoxMinFontSize = new System.Windows.Forms.MaskedTextBox(); - this.checkBoxScaleToFit = new System.Windows.Forms.CheckBox(); - this.checkBoxInverseColors = new System.Windows.Forms.CheckBox(); - this.buttonAlignRight = new System.Windows.Forms.Button(); - this.buttonAlignCenter = new System.Windows.Forms.Button(); - this.buttonAlignLeft = new System.Windows.Forms.Button(); - this.buttonRemoveColumn = new System.Windows.Forms.Button(); - this.buttonAddColumn = new System.Windows.Forms.Button(); - this.checkBoxReverseScreen = new System.Windows.Forms.CheckBox(); - this.buttonRemoveRow = new System.Windows.Forms.Button(); - this.buttonAddRow = new System.Windows.Forms.Button(); - this.tabPageApp = new System.Windows.Forms.TabPage(); - this.checkBoxStartMinimized = new System.Windows.Forms.CheckBox(); - this.checkBoxMinimizeToTray = new System.Windows.Forms.CheckBox(); - this.checkBoxAutoStart = new System.Windows.Forms.CheckBox(); - this.buttonUpdate = new System.Windows.Forms.Button(); - this.labelFontWidth = new System.Windows.Forms.Label(); - this.labelFontHeight = new System.Windows.Forms.Label(); - this.pictureBoxDemo = new System.Windows.Forms.PictureBox(); - this.panelDisplay.SuspendLayout(); - this.tableLayoutPanel.SuspendLayout(); - this.statusStrip.SuspendLayout(); - this.tabPageClients.SuspendLayout(); - this.tabPageDisplay.SuspendLayout(); - ((System.ComponentModel.ISupportInitialize)(this.trackBarBrightness)).BeginInit(); - this.tabControl.SuspendLayout(); - this.tabPageDesign.SuspendLayout(); - this.tabPageApp.SuspendLayout(); - ((System.ComponentModel.ISupportInitialize)(this.pictureBoxDemo)).BeginInit(); - this.SuspendLayout(); - // - // panelDisplay - // - this.panelDisplay.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; - this.panelDisplay.Controls.Add(this.tableLayoutPanel); - this.panelDisplay.Location = new System.Drawing.Point(173, 40); - this.panelDisplay.Margin = new System.Windows.Forms.Padding(0); - this.panelDisplay.Name = "panelDisplay"; - this.panelDisplay.Size = new System.Drawing.Size(258, 66); - this.panelDisplay.TabIndex = 12; - // - // tableLayoutPanel - // - this.tableLayoutPanel.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) + this.components = new System.ComponentModel.Container(); + System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(MainForm)); + this.panelDisplay = new System.Windows.Forms.Panel(); + this.tableLayoutPanel = new System.Windows.Forms.TableLayoutPanel(); + this.marqueeLabelTop = new SharpDisplayManager.MarqueeLabel(); + this.marqueeLabelBottom = new SharpDisplayManager.MarqueeLabel(); + this.fontDialog = new System.Windows.Forms.FontDialog(); + this.timer = new System.Windows.Forms.Timer(this.components); + this.statusStrip = new System.Windows.Forms.StatusStrip(); + this.toolStripStatusLabelConnect = new System.Windows.Forms.ToolStripStatusLabel(); + this.toolStripStatusLabelSpring = new System.Windows.Forms.ToolStripStatusLabel(); + this.toolStripStatusLabelPower = new System.Windows.Forms.ToolStripStatusLabel(); + this.toolStripStatusLabelFps = new System.Windows.Forms.ToolStripStatusLabel(); + this.tabPageClients = new System.Windows.Forms.TabPage(); + this.buttonCloseClients = new System.Windows.Forms.Button(); + this.buttonStartClient = new System.Windows.Forms.Button(); + this.treeViewClients = new System.Windows.Forms.TreeView(); + this.tabPageDisplay = new System.Windows.Forms.TabPage(); + this.buttonShowClock = new System.Windows.Forms.Button(); + this.buttonHideClock = new System.Windows.Forms.Button(); + this.buttonPowerOff = new System.Windows.Forms.Button(); + this.buttonPowerOn = new System.Windows.Forms.Button(); + this.labelTimerInterval = new System.Windows.Forms.Label(); + this.maskedTextBoxTimerInterval = new System.Windows.Forms.MaskedTextBox(); + this.comboBoxDisplayType = new System.Windows.Forms.ComboBox(); + this.buttonSuspend = new System.Windows.Forms.Button(); + this.checkBoxConnectOnStartup = new System.Windows.Forms.CheckBox(); + this.trackBarBrightness = new System.Windows.Forms.TrackBar(); + this.buttonFill = new System.Windows.Forms.Button(); + this.buttonClear = new System.Windows.Forms.Button(); + this.buttonClose = new System.Windows.Forms.Button(); + this.buttonOpen = new System.Windows.Forms.Button(); + this.buttonCapture = new System.Windows.Forms.Button(); + this.labelWarning = new System.Windows.Forms.Label(); + this.checkBoxFixedPitchFontOnly = new System.Windows.Forms.CheckBox(); + this.checkBoxShowBorders = new System.Windows.Forms.CheckBox(); + this.buttonFont = new System.Windows.Forms.Button(); + this.tabControl = new System.Windows.Forms.TabControl(); + this.tabPageDesign = new System.Windows.Forms.TabPage(); + this.labelScrollLoopSeparator = new System.Windows.Forms.Label(); + this.textBoxScrollLoopSeparator = new System.Windows.Forms.TextBox(); + this.labelMinFontSize = new System.Windows.Forms.Label(); + this.maskedTextBoxMinFontSize = new System.Windows.Forms.MaskedTextBox(); + this.checkBoxScaleToFit = new System.Windows.Forms.CheckBox(); + this.checkBoxInverseColors = new System.Windows.Forms.CheckBox(); + this.buttonAlignRight = new System.Windows.Forms.Button(); + this.buttonAlignCenter = new System.Windows.Forms.Button(); + this.buttonAlignLeft = new System.Windows.Forms.Button(); + this.buttonRemoveColumn = new System.Windows.Forms.Button(); + this.buttonAddColumn = new System.Windows.Forms.Button(); + this.checkBoxReverseScreen = new System.Windows.Forms.CheckBox(); + this.buttonRemoveRow = new System.Windows.Forms.Button(); + this.buttonAddRow = new System.Windows.Forms.Button(); + this.tabPageApp = new System.Windows.Forms.TabPage(); + this.checkBoxStartMinimized = new System.Windows.Forms.CheckBox(); + this.checkBoxMinimizeToTray = new System.Windows.Forms.CheckBox(); + this.checkBoxAutoStart = new System.Windows.Forms.CheckBox(); + this.buttonUpdate = new System.Windows.Forms.Button(); + this.labelFontWidth = new System.Windows.Forms.Label(); + this.labelFontHeight = new System.Windows.Forms.Label(); + this.pictureBoxDemo = new System.Windows.Forms.PictureBox(); + this.panelDisplay.SuspendLayout(); + this.tableLayoutPanel.SuspendLayout(); + this.statusStrip.SuspendLayout(); + this.tabPageClients.SuspendLayout(); + this.tabPageDisplay.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)(this.trackBarBrightness)).BeginInit(); + this.tabControl.SuspendLayout(); + this.tabPageDesign.SuspendLayout(); + this.tabPageApp.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)(this.pictureBoxDemo)).BeginInit(); + this.SuspendLayout(); + // + // panelDisplay + // + this.panelDisplay.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; + this.panelDisplay.Controls.Add(this.tableLayoutPanel); + this.panelDisplay.Location = new System.Drawing.Point(173, 40); + this.panelDisplay.Margin = new System.Windows.Forms.Padding(0); + this.panelDisplay.Name = "panelDisplay"; + this.panelDisplay.Size = new System.Drawing.Size(258, 66); + this.panelDisplay.TabIndex = 12; + // + // tableLayoutPanel + // + this.tableLayoutPanel.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); - this.tableLayoutPanel.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink; - this.tableLayoutPanel.BackColor = System.Drawing.SystemColors.ControlLightLight; - this.tableLayoutPanel.CellBorderStyle = System.Windows.Forms.TableLayoutPanelCellBorderStyle.Single; - this.tableLayoutPanel.ColumnCount = 1; - this.tableLayoutPanel.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 100F)); - this.tableLayoutPanel.Controls.Add(this.marqueeLabelTop, 0, 0); - this.tableLayoutPanel.Controls.Add(this.marqueeLabelBottom, 0, 1); - this.tableLayoutPanel.GrowStyle = System.Windows.Forms.TableLayoutPanelGrowStyle.FixedSize; - this.tableLayoutPanel.Location = new System.Drawing.Point(0, 0); - this.tableLayoutPanel.Margin = new System.Windows.Forms.Padding(0); - this.tableLayoutPanel.Name = "tableLayoutPanel"; - this.tableLayoutPanel.RowCount = 2; - this.tableLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 50F)); - this.tableLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 50F)); - this.tableLayoutPanel.Size = new System.Drawing.Size(256, 64); - this.tableLayoutPanel.TabIndex = 5; - // - // marqueeLabelTop - // - this.marqueeLabelTop.AutoEllipsis = true; - this.marqueeLabelTop.AutoSize = true; - this.marqueeLabelTop.BackColor = System.Drawing.Color.Transparent; - this.marqueeLabelTop.Dock = System.Windows.Forms.DockStyle.Fill; - this.marqueeLabelTop.Location = new System.Drawing.Point(1, 1); - this.marqueeLabelTop.Margin = new System.Windows.Forms.Padding(0); - this.marqueeLabelTop.MinFontSize = 15F; - this.marqueeLabelTop.Name = "marqueeLabelTop"; - this.marqueeLabelTop.OwnTimer = false; - this.marqueeLabelTop.PixelsPerSecond = 64; - this.marqueeLabelTop.ScaleToFit = true; - this.marqueeLabelTop.Separator = "|"; - this.marqueeLabelTop.Size = new System.Drawing.Size(254, 30); - this.marqueeLabelTop.TabIndex = 2; - this.marqueeLabelTop.Text = "ABCDEFGHIJKLMNOPQRST-0123456789"; - this.marqueeLabelTop.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; - this.marqueeLabelTop.UseCompatibleTextRendering = true; - // - // marqueeLabelBottom - // - this.marqueeLabelBottom.AutoEllipsis = true; - this.marqueeLabelBottom.AutoSize = true; - this.marqueeLabelBottom.Dock = System.Windows.Forms.DockStyle.Fill; - this.marqueeLabelBottom.Location = new System.Drawing.Point(1, 32); - this.marqueeLabelBottom.Margin = new System.Windows.Forms.Padding(0); - this.marqueeLabelBottom.MinFontSize = 15F; - this.marqueeLabelBottom.Name = "marqueeLabelBottom"; - this.marqueeLabelBottom.OwnTimer = false; - this.marqueeLabelBottom.PixelsPerSecond = 64; - this.marqueeLabelBottom.ScaleToFit = true; - this.marqueeLabelBottom.Separator = "|"; - this.marqueeLabelBottom.Size = new System.Drawing.Size(254, 31); - this.marqueeLabelBottom.TabIndex = 3; - this.marqueeLabelBottom.Text = "abcdefghijklmnopqrst-0123456789"; - this.marqueeLabelBottom.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; - this.marqueeLabelBottom.UseCompatibleTextRendering = true; - // - // timer - // - this.timer.Enabled = true; - this.timer.Interval = 50; - this.timer.Tick += new System.EventHandler(this.timer_Tick); - // - // statusStrip - // - this.statusStrip.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { + this.tableLayoutPanel.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink; + this.tableLayoutPanel.BackColor = System.Drawing.SystemColors.ControlLightLight; + this.tableLayoutPanel.CellBorderStyle = System.Windows.Forms.TableLayoutPanelCellBorderStyle.Single; + this.tableLayoutPanel.ColumnCount = 1; + this.tableLayoutPanel.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 100F)); + this.tableLayoutPanel.Controls.Add(this.marqueeLabelTop, 0, 0); + this.tableLayoutPanel.Controls.Add(this.marqueeLabelBottom, 0, 1); + this.tableLayoutPanel.GrowStyle = System.Windows.Forms.TableLayoutPanelGrowStyle.FixedSize; + this.tableLayoutPanel.Location = new System.Drawing.Point(0, 0); + this.tableLayoutPanel.Margin = new System.Windows.Forms.Padding(0); + this.tableLayoutPanel.Name = "tableLayoutPanel"; + this.tableLayoutPanel.RowCount = 2; + this.tableLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 50F)); + this.tableLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 50F)); + this.tableLayoutPanel.Size = new System.Drawing.Size(256, 64); + this.tableLayoutPanel.TabIndex = 5; + this.tableLayoutPanel.SizeChanged += new System.EventHandler(this.tableLayoutPanel_SizeChanged); + // + // marqueeLabelTop + // + this.marqueeLabelTop.AutoEllipsis = true; + this.marqueeLabelTop.AutoSize = true; + this.marqueeLabelTop.BackColor = System.Drawing.Color.Transparent; + this.marqueeLabelTop.Dock = System.Windows.Forms.DockStyle.Fill; + this.marqueeLabelTop.Location = new System.Drawing.Point(1, 1); + this.marqueeLabelTop.Margin = new System.Windows.Forms.Padding(0); + this.marqueeLabelTop.MinFontSize = 15F; + this.marqueeLabelTop.Name = "marqueeLabelTop"; + this.marqueeLabelTop.OwnTimer = false; + this.marqueeLabelTop.PixelsPerSecond = 64; + this.marqueeLabelTop.ScaleToFit = true; + this.marqueeLabelTop.Separator = "|"; + this.marqueeLabelTop.Size = new System.Drawing.Size(254, 30); + this.marqueeLabelTop.TabIndex = 2; + this.marqueeLabelTop.Text = "ABCDEFGHIJKLMNOPQRST-0123456789"; + this.marqueeLabelTop.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; + this.marqueeLabelTop.UseCompatibleTextRendering = true; + // + // marqueeLabelBottom + // + this.marqueeLabelBottom.AutoEllipsis = true; + this.marqueeLabelBottom.AutoSize = true; + this.marqueeLabelBottom.Dock = System.Windows.Forms.DockStyle.Fill; + this.marqueeLabelBottom.Location = new System.Drawing.Point(1, 32); + this.marqueeLabelBottom.Margin = new System.Windows.Forms.Padding(0); + this.marqueeLabelBottom.MinFontSize = 15F; + this.marqueeLabelBottom.Name = "marqueeLabelBottom"; + this.marqueeLabelBottom.OwnTimer = false; + this.marqueeLabelBottom.PixelsPerSecond = 64; + this.marqueeLabelBottom.ScaleToFit = true; + this.marqueeLabelBottom.Separator = "|"; + this.marqueeLabelBottom.Size = new System.Drawing.Size(254, 31); + this.marqueeLabelBottom.TabIndex = 3; + this.marqueeLabelBottom.Text = "abcdefghijklmnopqrst-0123456789"; + this.marqueeLabelBottom.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; + this.marqueeLabelBottom.UseCompatibleTextRendering = true; + // + // timer + // + this.timer.Enabled = true; + this.timer.Interval = 50; + this.timer.Tick += new System.EventHandler(this.timer_Tick); + // + // statusStrip + // + this.statusStrip.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { this.toolStripStatusLabelConnect, this.toolStripStatusLabelSpring, this.toolStripStatusLabelPower, this.toolStripStatusLabelFps}); - this.statusStrip.Location = new System.Drawing.Point(0, 420); - this.statusStrip.Name = "statusStrip"; - this.statusStrip.RenderMode = System.Windows.Forms.ToolStripRenderMode.Professional; - this.statusStrip.Size = new System.Drawing.Size(624, 22); - this.statusStrip.TabIndex = 1; - this.statusStrip.Text = "statusStrip"; - // - // toolStripStatusLabelConnect - // - this.toolStripStatusLabelConnect.Name = "toolStripStatusLabelConnect"; - this.toolStripStatusLabelConnect.Size = new System.Drawing.Size(86, 17); - this.toolStripStatusLabelConnect.Text = "Not connected"; - // - // toolStripStatusLabelSpring - // - this.toolStripStatusLabelSpring.Name = "toolStripStatusLabelSpring"; - this.toolStripStatusLabelSpring.Size = new System.Drawing.Size(473, 17); - this.toolStripStatusLabelSpring.Spring = true; - // - // toolStripStatusLabelPower - // - this.toolStripStatusLabelPower.Name = "toolStripStatusLabelPower"; - this.toolStripStatusLabelPower.Size = new System.Drawing.Size(24, 17); - this.toolStripStatusLabelPower.Text = "NA"; - // - // toolStripStatusLabelFps - // - this.toolStripStatusLabelFps.Name = "toolStripStatusLabelFps"; - this.toolStripStatusLabelFps.Size = new System.Drawing.Size(26, 17); - this.toolStripStatusLabelFps.Text = "FPS"; - // - // tabPageClients - // - this.tabPageClients.Controls.Add(this.buttonCloseClients); - this.tabPageClients.Controls.Add(this.buttonStartClient); - this.tabPageClients.Controls.Add(this.treeViewClients); - this.tabPageClients.Location = new System.Drawing.Point(4, 22); - this.tabPageClients.Name = "tabPageClients"; - this.tabPageClients.Padding = new System.Windows.Forms.Padding(3); - this.tabPageClients.Size = new System.Drawing.Size(592, 242); - this.tabPageClients.TabIndex = 2; - this.tabPageClients.Text = "Clients"; - this.tabPageClients.UseVisualStyleBackColor = true; - // - // buttonCloseClients - // - this.buttonCloseClients.Location = new System.Drawing.Point(6, 35); - this.buttonCloseClients.Name = "buttonCloseClients"; - this.buttonCloseClients.Size = new System.Drawing.Size(75, 23); - this.buttonCloseClients.TabIndex = 20; - this.buttonCloseClients.Text = "Close Clients"; - this.buttonCloseClients.UseVisualStyleBackColor = true; - this.buttonCloseClients.Click += new System.EventHandler(this.buttonCloseClients_Click); - // - // buttonStartClient - // - this.buttonStartClient.Location = new System.Drawing.Point(6, 6); - this.buttonStartClient.Name = "buttonStartClient"; - this.buttonStartClient.Size = new System.Drawing.Size(75, 23); - this.buttonStartClient.TabIndex = 19; - this.buttonStartClient.Text = "Start Client"; - this.buttonStartClient.UseVisualStyleBackColor = true; - this.buttonStartClient.Click += new System.EventHandler(this.buttonStartClient_Click); - // - // treeViewClients - // - this.treeViewClients.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) + this.statusStrip.Location = new System.Drawing.Point(0, 420); + this.statusStrip.Name = "statusStrip"; + this.statusStrip.RenderMode = System.Windows.Forms.ToolStripRenderMode.Professional; + this.statusStrip.Size = new System.Drawing.Size(624, 22); + this.statusStrip.TabIndex = 1; + this.statusStrip.Text = "statusStrip"; + // + // toolStripStatusLabelConnect + // + this.toolStripStatusLabelConnect.Name = "toolStripStatusLabelConnect"; + this.toolStripStatusLabelConnect.Size = new System.Drawing.Size(86, 17); + this.toolStripStatusLabelConnect.Text = "Not connected"; + // + // toolStripStatusLabelSpring + // + this.toolStripStatusLabelSpring.Name = "toolStripStatusLabelSpring"; + this.toolStripStatusLabelSpring.Size = new System.Drawing.Size(473, 17); + this.toolStripStatusLabelSpring.Spring = true; + // + // toolStripStatusLabelPower + // + this.toolStripStatusLabelPower.Name = "toolStripStatusLabelPower"; + this.toolStripStatusLabelPower.Size = new System.Drawing.Size(24, 17); + this.toolStripStatusLabelPower.Text = "NA"; + // + // toolStripStatusLabelFps + // + this.toolStripStatusLabelFps.Name = "toolStripStatusLabelFps"; + this.toolStripStatusLabelFps.Size = new System.Drawing.Size(26, 17); + this.toolStripStatusLabelFps.Text = "FPS"; + // + // tabPageClients + // + this.tabPageClients.Controls.Add(this.buttonCloseClients); + this.tabPageClients.Controls.Add(this.buttonStartClient); + this.tabPageClients.Controls.Add(this.treeViewClients); + this.tabPageClients.Location = new System.Drawing.Point(4, 22); + this.tabPageClients.Name = "tabPageClients"; + this.tabPageClients.Padding = new System.Windows.Forms.Padding(3); + this.tabPageClients.Size = new System.Drawing.Size(592, 242); + this.tabPageClients.TabIndex = 2; + this.tabPageClients.Text = "Clients"; + this.tabPageClients.UseVisualStyleBackColor = true; + // + // buttonCloseClients + // + this.buttonCloseClients.Location = new System.Drawing.Point(6, 35); + this.buttonCloseClients.Name = "buttonCloseClients"; + this.buttonCloseClients.Size = new System.Drawing.Size(75, 23); + this.buttonCloseClients.TabIndex = 20; + this.buttonCloseClients.Text = "Close Clients"; + this.buttonCloseClients.UseVisualStyleBackColor = true; + this.buttonCloseClients.Click += new System.EventHandler(this.buttonCloseClients_Click); + // + // buttonStartClient + // + this.buttonStartClient.Location = new System.Drawing.Point(6, 6); + this.buttonStartClient.Name = "buttonStartClient"; + this.buttonStartClient.Size = new System.Drawing.Size(75, 23); + this.buttonStartClient.TabIndex = 19; + this.buttonStartClient.Text = "Start Client"; + this.buttonStartClient.UseVisualStyleBackColor = true; + this.buttonStartClient.Click += new System.EventHandler(this.buttonStartClient_Click); + // + // treeViewClients + // + this.treeViewClients.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); - this.treeViewClients.Location = new System.Drawing.Point(87, 6); - this.treeViewClients.Name = "treeViewClients"; - this.treeViewClients.Size = new System.Drawing.Size(499, 233); - this.treeViewClients.TabIndex = 0; - this.treeViewClients.AfterSelect += new System.Windows.Forms.TreeViewEventHandler(this.treeViewClients_AfterSelect); - // - // tabPageDisplay - // - this.tabPageDisplay.Controls.Add(this.buttonShowClock); - this.tabPageDisplay.Controls.Add(this.buttonHideClock); - this.tabPageDisplay.Controls.Add(this.buttonPowerOff); - this.tabPageDisplay.Controls.Add(this.buttonPowerOn); - this.tabPageDisplay.Controls.Add(this.labelTimerInterval); - this.tabPageDisplay.Controls.Add(this.maskedTextBoxTimerInterval); - this.tabPageDisplay.Controls.Add(this.comboBoxDisplayType); - this.tabPageDisplay.Controls.Add(this.buttonSuspend); - this.tabPageDisplay.Controls.Add(this.checkBoxConnectOnStartup); - this.tabPageDisplay.Controls.Add(this.trackBarBrightness); - this.tabPageDisplay.Controls.Add(this.buttonFill); - this.tabPageDisplay.Controls.Add(this.buttonClear); - this.tabPageDisplay.Controls.Add(this.buttonClose); - this.tabPageDisplay.Controls.Add(this.buttonOpen); - this.tabPageDisplay.Controls.Add(this.buttonCapture); - this.tabPageDisplay.Location = new System.Drawing.Point(4, 22); - this.tabPageDisplay.Name = "tabPageDisplay"; - this.tabPageDisplay.Padding = new System.Windows.Forms.Padding(3); - this.tabPageDisplay.Size = new System.Drawing.Size(592, 242); - this.tabPageDisplay.TabIndex = 0; - this.tabPageDisplay.Text = "Display"; - this.tabPageDisplay.UseVisualStyleBackColor = true; - // - // buttonShowClock - // - this.buttonShowClock.Location = new System.Drawing.Point(293, 124); - this.buttonShowClock.Name = "buttonShowClock"; - this.buttonShowClock.Size = new System.Drawing.Size(75, 23); - this.buttonShowClock.TabIndex = 23; - this.buttonShowClock.Text = "Show Clock"; - this.buttonShowClock.UseVisualStyleBackColor = true; - this.buttonShowClock.Click += new System.EventHandler(this.buttonShowClock_Click); - // - // buttonHideClock - // - this.buttonHideClock.Location = new System.Drawing.Point(293, 153); - this.buttonHideClock.Name = "buttonHideClock"; - this.buttonHideClock.Size = new System.Drawing.Size(75, 23); - this.buttonHideClock.TabIndex = 22; - this.buttonHideClock.Text = "Hide Clock"; - this.buttonHideClock.UseVisualStyleBackColor = true; - this.buttonHideClock.Click += new System.EventHandler(this.buttonHideClock_Click); - // - // buttonPowerOff - // - this.buttonPowerOff.Location = new System.Drawing.Point(293, 211); - this.buttonPowerOff.Name = "buttonPowerOff"; - this.buttonPowerOff.Size = new System.Drawing.Size(75, 23); - this.buttonPowerOff.TabIndex = 21; - this.buttonPowerOff.Text = "OFF"; - this.buttonPowerOff.UseVisualStyleBackColor = true; - this.buttonPowerOff.Click += new System.EventHandler(this.buttonPowerOff_Click); - // - // buttonPowerOn - // - this.buttonPowerOn.Location = new System.Drawing.Point(293, 182); - this.buttonPowerOn.Name = "buttonPowerOn"; - this.buttonPowerOn.Size = new System.Drawing.Size(75, 23); - this.buttonPowerOn.TabIndex = 20; - this.buttonPowerOn.Text = "ON"; - this.buttonPowerOn.UseVisualStyleBackColor = true; - this.buttonPowerOn.Click += new System.EventHandler(this.buttonPowerOn_Click); - // - // labelTimerInterval - // - this.labelTimerInterval.AutoSize = true; - this.labelTimerInterval.Location = new System.Drawing.Point(184, 45); - this.labelTimerInterval.Name = "labelTimerInterval"; - this.labelTimerInterval.Size = new System.Drawing.Size(98, 13); - this.labelTimerInterval.TabIndex = 19; - this.labelTimerInterval.Text = "Timer interval (ms) :"; - // - // maskedTextBoxTimerInterval - // - this.maskedTextBoxTimerInterval.Location = new System.Drawing.Point(288, 42); - this.maskedTextBoxTimerInterval.Mask = "000"; - this.maskedTextBoxTimerInterval.Name = "maskedTextBoxTimerInterval"; - this.maskedTextBoxTimerInterval.PromptChar = ' '; - this.maskedTextBoxTimerInterval.Size = new System.Drawing.Size(24, 20); - this.maskedTextBoxTimerInterval.TabIndex = 18; - this.maskedTextBoxTimerInterval.TextChanged += new System.EventHandler(this.maskedTextBoxTimerInterval_TextChanged); - // - // comboBoxDisplayType - // - this.comboBoxDisplayType.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; - this.comboBoxDisplayType.FormattingEnabled = true; - this.comboBoxDisplayType.Location = new System.Drawing.Point(187, 9); - this.comboBoxDisplayType.Name = "comboBoxDisplayType"; - this.comboBoxDisplayType.Size = new System.Drawing.Size(181, 21); - this.comboBoxDisplayType.TabIndex = 17; - this.comboBoxDisplayType.SelectedIndexChanged += new System.EventHandler(this.comboBoxDisplayType_SelectedIndexChanged); - // - // buttonSuspend - // - this.buttonSuspend.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); - this.buttonSuspend.Location = new System.Drawing.Point(6, 184); - this.buttonSuspend.Name = "buttonSuspend"; - this.buttonSuspend.Size = new System.Drawing.Size(75, 23); - this.buttonSuspend.TabIndex = 16; - this.buttonSuspend.Text = "Pause"; - this.buttonSuspend.UseVisualStyleBackColor = true; - this.buttonSuspend.Click += new System.EventHandler(this.buttonSuspend_Click); - // - // checkBoxConnectOnStartup - // - this.checkBoxConnectOnStartup.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); - this.checkBoxConnectOnStartup.AutoSize = true; - this.checkBoxConnectOnStartup.Location = new System.Drawing.Point(113, 217); - this.checkBoxConnectOnStartup.Name = "checkBoxConnectOnStartup"; - this.checkBoxConnectOnStartup.Size = new System.Drawing.Size(119, 17); - this.checkBoxConnectOnStartup.TabIndex = 13; - this.checkBoxConnectOnStartup.Text = "Connect on stratup "; - this.checkBoxConnectOnStartup.UseVisualStyleBackColor = true; - this.checkBoxConnectOnStartup.CheckedChanged += new System.EventHandler(this.checkBoxConnectOnStartup_CheckedChanged); - // - // trackBarBrightness - // - this.trackBarBrightness.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) + this.treeViewClients.Location = new System.Drawing.Point(87, 6); + this.treeViewClients.Name = "treeViewClients"; + this.treeViewClients.Size = new System.Drawing.Size(499, 233); + this.treeViewClients.TabIndex = 0; + this.treeViewClients.AfterSelect += new System.Windows.Forms.TreeViewEventHandler(this.treeViewClients_AfterSelect); + // + // tabPageDisplay + // + this.tabPageDisplay.Controls.Add(this.buttonShowClock); + this.tabPageDisplay.Controls.Add(this.buttonHideClock); + this.tabPageDisplay.Controls.Add(this.buttonPowerOff); + this.tabPageDisplay.Controls.Add(this.buttonPowerOn); + this.tabPageDisplay.Controls.Add(this.labelTimerInterval); + this.tabPageDisplay.Controls.Add(this.maskedTextBoxTimerInterval); + this.tabPageDisplay.Controls.Add(this.comboBoxDisplayType); + this.tabPageDisplay.Controls.Add(this.buttonSuspend); + this.tabPageDisplay.Controls.Add(this.checkBoxConnectOnStartup); + this.tabPageDisplay.Controls.Add(this.trackBarBrightness); + this.tabPageDisplay.Controls.Add(this.buttonFill); + this.tabPageDisplay.Controls.Add(this.buttonClear); + this.tabPageDisplay.Controls.Add(this.buttonClose); + this.tabPageDisplay.Controls.Add(this.buttonOpen); + this.tabPageDisplay.Controls.Add(this.buttonCapture); + this.tabPageDisplay.Location = new System.Drawing.Point(4, 22); + this.tabPageDisplay.Name = "tabPageDisplay"; + this.tabPageDisplay.Padding = new System.Windows.Forms.Padding(3); + this.tabPageDisplay.Size = new System.Drawing.Size(592, 242); + this.tabPageDisplay.TabIndex = 0; + this.tabPageDisplay.Text = "Display"; + this.tabPageDisplay.UseVisualStyleBackColor = true; + // + // buttonShowClock + // + this.buttonShowClock.Location = new System.Drawing.Point(293, 124); + this.buttonShowClock.Name = "buttonShowClock"; + this.buttonShowClock.Size = new System.Drawing.Size(75, 23); + this.buttonShowClock.TabIndex = 23; + this.buttonShowClock.Text = "Show Clock"; + this.buttonShowClock.UseVisualStyleBackColor = true; + this.buttonShowClock.Click += new System.EventHandler(this.buttonShowClock_Click); + // + // buttonHideClock + // + this.buttonHideClock.Location = new System.Drawing.Point(293, 153); + this.buttonHideClock.Name = "buttonHideClock"; + this.buttonHideClock.Size = new System.Drawing.Size(75, 23); + this.buttonHideClock.TabIndex = 22; + this.buttonHideClock.Text = "Hide Clock"; + this.buttonHideClock.UseVisualStyleBackColor = true; + this.buttonHideClock.Click += new System.EventHandler(this.buttonHideClock_Click); + // + // buttonPowerOff + // + this.buttonPowerOff.Location = new System.Drawing.Point(293, 211); + this.buttonPowerOff.Name = "buttonPowerOff"; + this.buttonPowerOff.Size = new System.Drawing.Size(75, 23); + this.buttonPowerOff.TabIndex = 21; + this.buttonPowerOff.Text = "OFF"; + this.buttonPowerOff.UseVisualStyleBackColor = true; + this.buttonPowerOff.Click += new System.EventHandler(this.buttonPowerOff_Click); + // + // buttonPowerOn + // + this.buttonPowerOn.Location = new System.Drawing.Point(293, 182); + this.buttonPowerOn.Name = "buttonPowerOn"; + this.buttonPowerOn.Size = new System.Drawing.Size(75, 23); + this.buttonPowerOn.TabIndex = 20; + this.buttonPowerOn.Text = "ON"; + this.buttonPowerOn.UseVisualStyleBackColor = true; + this.buttonPowerOn.Click += new System.EventHandler(this.buttonPowerOn_Click); + // + // labelTimerInterval + // + this.labelTimerInterval.AutoSize = true; + this.labelTimerInterval.Location = new System.Drawing.Point(184, 45); + this.labelTimerInterval.Name = "labelTimerInterval"; + this.labelTimerInterval.Size = new System.Drawing.Size(98, 13); + this.labelTimerInterval.TabIndex = 19; + this.labelTimerInterval.Text = "Timer interval (ms) :"; + // + // maskedTextBoxTimerInterval + // + this.maskedTextBoxTimerInterval.Location = new System.Drawing.Point(288, 42); + this.maskedTextBoxTimerInterval.Mask = "000"; + this.maskedTextBoxTimerInterval.Name = "maskedTextBoxTimerInterval"; + this.maskedTextBoxTimerInterval.PromptChar = ' '; + this.maskedTextBoxTimerInterval.Size = new System.Drawing.Size(24, 20); + this.maskedTextBoxTimerInterval.TabIndex = 18; + this.maskedTextBoxTimerInterval.TextChanged += new System.EventHandler(this.maskedTextBoxTimerInterval_TextChanged); + // + // comboBoxDisplayType + // + this.comboBoxDisplayType.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; + this.comboBoxDisplayType.FormattingEnabled = true; + this.comboBoxDisplayType.Location = new System.Drawing.Point(187, 9); + this.comboBoxDisplayType.Name = "comboBoxDisplayType"; + this.comboBoxDisplayType.Size = new System.Drawing.Size(181, 21); + this.comboBoxDisplayType.TabIndex = 17; + this.comboBoxDisplayType.SelectedIndexChanged += new System.EventHandler(this.comboBoxDisplayType_SelectedIndexChanged); + // + // buttonSuspend + // + this.buttonSuspend.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); + this.buttonSuspend.Location = new System.Drawing.Point(6, 184); + this.buttonSuspend.Name = "buttonSuspend"; + this.buttonSuspend.Size = new System.Drawing.Size(75, 23); + this.buttonSuspend.TabIndex = 16; + this.buttonSuspend.Text = "Pause"; + this.buttonSuspend.UseVisualStyleBackColor = true; + this.buttonSuspend.Click += new System.EventHandler(this.buttonSuspend_Click); + // + // checkBoxConnectOnStartup + // + this.checkBoxConnectOnStartup.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); + this.checkBoxConnectOnStartup.AutoSize = true; + this.checkBoxConnectOnStartup.Location = new System.Drawing.Point(113, 217); + this.checkBoxConnectOnStartup.Name = "checkBoxConnectOnStartup"; + this.checkBoxConnectOnStartup.Size = new System.Drawing.Size(119, 17); + this.checkBoxConnectOnStartup.TabIndex = 13; + this.checkBoxConnectOnStartup.Text = "Connect on stratup "; + this.checkBoxConnectOnStartup.UseVisualStyleBackColor = true; + this.checkBoxConnectOnStartup.CheckedChanged += new System.EventHandler(this.checkBoxConnectOnStartup_CheckedChanged); + // + // trackBarBrightness + // + this.trackBarBrightness.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | System.Windows.Forms.AnchorStyles.Right))); - this.trackBarBrightness.BackColor = System.Drawing.SystemColors.Window; - this.trackBarBrightness.Location = new System.Drawing.Point(544, 9); - this.trackBarBrightness.Name = "trackBarBrightness"; - this.trackBarBrightness.Orientation = System.Windows.Forms.Orientation.Vertical; - this.trackBarBrightness.Size = new System.Drawing.Size(45, 225); - this.trackBarBrightness.TabIndex = 10; - this.trackBarBrightness.TickStyle = System.Windows.Forms.TickStyle.Both; - this.trackBarBrightness.Scroll += new System.EventHandler(this.trackBarBrightness_Scroll); - // - // buttonFill - // - this.buttonFill.Location = new System.Drawing.Point(6, 93); - this.buttonFill.Name = "buttonFill"; - this.buttonFill.Size = new System.Drawing.Size(75, 23); - this.buttonFill.TabIndex = 9; - this.buttonFill.Text = "Fill"; - this.buttonFill.UseVisualStyleBackColor = true; - this.buttonFill.Click += new System.EventHandler(this.buttonFill_Click); - // - // buttonClear - // - this.buttonClear.Location = new System.Drawing.Point(6, 64); - this.buttonClear.Name = "buttonClear"; - this.buttonClear.Size = new System.Drawing.Size(75, 23); - this.buttonClear.TabIndex = 8; - this.buttonClear.Text = "Clear"; - this.buttonClear.UseVisualStyleBackColor = true; - this.buttonClear.Click += new System.EventHandler(this.buttonClear_Click); - // - // buttonClose - // - this.buttonClose.Location = new System.Drawing.Point(6, 35); - this.buttonClose.Name = "buttonClose"; - this.buttonClose.Size = new System.Drawing.Size(75, 23); - this.buttonClose.TabIndex = 7; - this.buttonClose.Text = "Close"; - this.buttonClose.UseVisualStyleBackColor = true; - this.buttonClose.Click += new System.EventHandler(this.buttonClose_Click); - // - // buttonOpen - // - this.buttonOpen.Location = new System.Drawing.Point(6, 6); - this.buttonOpen.Name = "buttonOpen"; - this.buttonOpen.Size = new System.Drawing.Size(75, 23); - this.buttonOpen.TabIndex = 6; - this.buttonOpen.Text = "Open"; - this.buttonOpen.UseVisualStyleBackColor = true; - this.buttonOpen.Click += new System.EventHandler(this.buttonOpen_Click); - // - // buttonCapture - // - this.buttonCapture.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); - this.buttonCapture.Location = new System.Drawing.Point(6, 213); - this.buttonCapture.Name = "buttonCapture"; - this.buttonCapture.Size = new System.Drawing.Size(75, 23); - this.buttonCapture.TabIndex = 5; - this.buttonCapture.Text = "Capture"; - this.buttonCapture.UseVisualStyleBackColor = true; - this.buttonCapture.Click += new System.EventHandler(this.buttonCapture_Click); - // - // labelWarning - // - this.labelWarning.AutoSize = true; - this.labelWarning.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.labelWarning.ForeColor = System.Drawing.Color.Red; - this.labelWarning.Location = new System.Drawing.Point(9, 9); - this.labelWarning.Name = "labelWarning"; - this.labelWarning.Size = new System.Drawing.Size(80, 16); - this.labelWarning.TabIndex = 18; - this.labelWarning.Text = "WARNING"; - this.labelWarning.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; - this.labelWarning.Visible = false; - // - // checkBoxFixedPitchFontOnly - // - this.checkBoxFixedPitchFontOnly.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); - this.checkBoxFixedPitchFontOnly.AutoSize = true; - this.checkBoxFixedPitchFontOnly.Location = new System.Drawing.Point(87, 217); - this.checkBoxFixedPitchFontOnly.Name = "checkBoxFixedPitchFontOnly"; - this.checkBoxFixedPitchFontOnly.Size = new System.Drawing.Size(120, 17); - this.checkBoxFixedPitchFontOnly.TabIndex = 17; - this.checkBoxFixedPitchFontOnly.Text = "Fixed pitch font only"; - this.checkBoxFixedPitchFontOnly.UseVisualStyleBackColor = true; - // - // checkBoxShowBorders - // - this.checkBoxShowBorders.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); - this.checkBoxShowBorders.AutoSize = true; - this.checkBoxShowBorders.Location = new System.Drawing.Point(485, 29); - this.checkBoxShowBorders.Name = "checkBoxShowBorders"; - this.checkBoxShowBorders.Size = new System.Drawing.Size(91, 17); - this.checkBoxShowBorders.TabIndex = 11; - this.checkBoxShowBorders.Text = "Show borders"; - this.checkBoxShowBorders.UseVisualStyleBackColor = true; - this.checkBoxShowBorders.CheckedChanged += new System.EventHandler(this.checkBoxShowBorders_CheckedChanged); - // - // buttonFont - // - this.buttonFont.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); - this.buttonFont.Location = new System.Drawing.Point(6, 213); - this.buttonFont.Name = "buttonFont"; - this.buttonFont.Size = new System.Drawing.Size(75, 23); - this.buttonFont.TabIndex = 0; - this.buttonFont.Text = "Select Font"; - this.buttonFont.UseVisualStyleBackColor = true; - this.buttonFont.Click += new System.EventHandler(this.buttonFont_Click); - // - // tabControl - // - this.tabControl.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) + this.trackBarBrightness.BackColor = System.Drawing.SystemColors.Window; + this.trackBarBrightness.Location = new System.Drawing.Point(544, 9); + this.trackBarBrightness.Name = "trackBarBrightness"; + this.trackBarBrightness.Orientation = System.Windows.Forms.Orientation.Vertical; + this.trackBarBrightness.Size = new System.Drawing.Size(45, 225); + this.trackBarBrightness.TabIndex = 10; + this.trackBarBrightness.TickStyle = System.Windows.Forms.TickStyle.Both; + this.trackBarBrightness.Scroll += new System.EventHandler(this.trackBarBrightness_Scroll); + // + // buttonFill + // + this.buttonFill.Location = new System.Drawing.Point(6, 93); + this.buttonFill.Name = "buttonFill"; + this.buttonFill.Size = new System.Drawing.Size(75, 23); + this.buttonFill.TabIndex = 9; + this.buttonFill.Text = "Fill"; + this.buttonFill.UseVisualStyleBackColor = true; + this.buttonFill.Click += new System.EventHandler(this.buttonFill_Click); + // + // buttonClear + // + this.buttonClear.Location = new System.Drawing.Point(6, 64); + this.buttonClear.Name = "buttonClear"; + this.buttonClear.Size = new System.Drawing.Size(75, 23); + this.buttonClear.TabIndex = 8; + this.buttonClear.Text = "Clear"; + this.buttonClear.UseVisualStyleBackColor = true; + this.buttonClear.Click += new System.EventHandler(this.buttonClear_Click); + // + // buttonClose + // + this.buttonClose.Location = new System.Drawing.Point(6, 35); + this.buttonClose.Name = "buttonClose"; + this.buttonClose.Size = new System.Drawing.Size(75, 23); + this.buttonClose.TabIndex = 7; + this.buttonClose.Text = "Close"; + this.buttonClose.UseVisualStyleBackColor = true; + this.buttonClose.Click += new System.EventHandler(this.buttonClose_Click); + // + // buttonOpen + // + this.buttonOpen.Location = new System.Drawing.Point(6, 6); + this.buttonOpen.Name = "buttonOpen"; + this.buttonOpen.Size = new System.Drawing.Size(75, 23); + this.buttonOpen.TabIndex = 6; + this.buttonOpen.Text = "Open"; + this.buttonOpen.UseVisualStyleBackColor = true; + this.buttonOpen.Click += new System.EventHandler(this.buttonOpen_Click); + // + // buttonCapture + // + this.buttonCapture.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); + this.buttonCapture.Location = new System.Drawing.Point(6, 213); + this.buttonCapture.Name = "buttonCapture"; + this.buttonCapture.Size = new System.Drawing.Size(75, 23); + this.buttonCapture.TabIndex = 5; + this.buttonCapture.Text = "Capture"; + this.buttonCapture.UseVisualStyleBackColor = true; + this.buttonCapture.Click += new System.EventHandler(this.buttonCapture_Click); + // + // labelWarning + // + this.labelWarning.AutoSize = true; + this.labelWarning.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.labelWarning.ForeColor = System.Drawing.Color.Red; + this.labelWarning.Location = new System.Drawing.Point(9, 9); + this.labelWarning.Name = "labelWarning"; + this.labelWarning.Size = new System.Drawing.Size(80, 16); + this.labelWarning.TabIndex = 18; + this.labelWarning.Text = "WARNING"; + this.labelWarning.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; + this.labelWarning.Visible = false; + // + // checkBoxFixedPitchFontOnly + // + this.checkBoxFixedPitchFontOnly.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); + this.checkBoxFixedPitchFontOnly.AutoSize = true; + this.checkBoxFixedPitchFontOnly.Location = new System.Drawing.Point(87, 217); + this.checkBoxFixedPitchFontOnly.Name = "checkBoxFixedPitchFontOnly"; + this.checkBoxFixedPitchFontOnly.Size = new System.Drawing.Size(120, 17); + this.checkBoxFixedPitchFontOnly.TabIndex = 17; + this.checkBoxFixedPitchFontOnly.Text = "Fixed pitch font only"; + this.checkBoxFixedPitchFontOnly.UseVisualStyleBackColor = true; + // + // checkBoxShowBorders + // + this.checkBoxShowBorders.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); + this.checkBoxShowBorders.AutoSize = true; + this.checkBoxShowBorders.Location = new System.Drawing.Point(485, 29); + this.checkBoxShowBorders.Name = "checkBoxShowBorders"; + this.checkBoxShowBorders.Size = new System.Drawing.Size(91, 17); + this.checkBoxShowBorders.TabIndex = 11; + this.checkBoxShowBorders.Text = "Show borders"; + this.checkBoxShowBorders.UseVisualStyleBackColor = true; + this.checkBoxShowBorders.CheckedChanged += new System.EventHandler(this.checkBoxShowBorders_CheckedChanged); + // + // buttonFont + // + this.buttonFont.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); + this.buttonFont.Location = new System.Drawing.Point(6, 213); + this.buttonFont.Name = "buttonFont"; + this.buttonFont.Size = new System.Drawing.Size(75, 23); + this.buttonFont.TabIndex = 0; + this.buttonFont.Text = "Select Font"; + this.buttonFont.UseVisualStyleBackColor = true; + this.buttonFont.Click += new System.EventHandler(this.buttonFont_Click); + // + // tabControl + // + this.tabControl.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); - this.tabControl.Controls.Add(this.tabPageDisplay); - this.tabControl.Controls.Add(this.tabPageClients); - this.tabControl.Controls.Add(this.tabPageDesign); - this.tabControl.Controls.Add(this.tabPageApp); - this.tabControl.Location = new System.Drawing.Point(12, 139); - this.tabControl.Name = "tabControl"; - this.tabControl.SelectedIndex = 0; - this.tabControl.Size = new System.Drawing.Size(600, 268); - this.tabControl.TabIndex = 0; - // - // tabPageDesign - // - this.tabPageDesign.Controls.Add(this.labelScrollLoopSeparator); - this.tabPageDesign.Controls.Add(this.textBoxScrollLoopSeparator); - this.tabPageDesign.Controls.Add(this.labelMinFontSize); - this.tabPageDesign.Controls.Add(this.maskedTextBoxMinFontSize); - this.tabPageDesign.Controls.Add(this.checkBoxScaleToFit); - this.tabPageDesign.Controls.Add(this.checkBoxInverseColors); - this.tabPageDesign.Controls.Add(this.buttonAlignRight); - this.tabPageDesign.Controls.Add(this.buttonAlignCenter); - this.tabPageDesign.Controls.Add(this.buttonAlignLeft); - this.tabPageDesign.Controls.Add(this.buttonRemoveColumn); - this.tabPageDesign.Controls.Add(this.checkBoxFixedPitchFontOnly); - this.tabPageDesign.Controls.Add(this.buttonAddColumn); - this.tabPageDesign.Controls.Add(this.buttonFont); - this.tabPageDesign.Controls.Add(this.checkBoxReverseScreen); - this.tabPageDesign.Controls.Add(this.buttonRemoveRow); - this.tabPageDesign.Controls.Add(this.buttonAddRow); - this.tabPageDesign.Controls.Add(this.checkBoxShowBorders); - this.tabPageDesign.Location = new System.Drawing.Point(4, 22); - this.tabPageDesign.Name = "tabPageDesign"; - this.tabPageDesign.Padding = new System.Windows.Forms.Padding(3); - this.tabPageDesign.Size = new System.Drawing.Size(592, 242); - this.tabPageDesign.TabIndex = 3; - this.tabPageDesign.Text = "Design"; - this.tabPageDesign.UseVisualStyleBackColor = true; - // - // labelScrollLoopSeparator - // - this.labelScrollLoopSeparator.AutoSize = true; - this.labelScrollLoopSeparator.Location = new System.Drawing.Point(84, 145); - this.labelScrollLoopSeparator.Name = "labelScrollLoopSeparator"; - this.labelScrollLoopSeparator.Size = new System.Drawing.Size(109, 13); - this.labelScrollLoopSeparator.TabIndex = 26; - this.labelScrollLoopSeparator.Text = "Scroll loop separator :"; - // - // textBoxScrollLoopSeparator - // - this.textBoxScrollLoopSeparator.Location = new System.Drawing.Point(205, 142); - this.textBoxScrollLoopSeparator.Name = "textBoxScrollLoopSeparator"; - this.textBoxScrollLoopSeparator.Size = new System.Drawing.Size(74, 20); - this.textBoxScrollLoopSeparator.TabIndex = 25; - this.textBoxScrollLoopSeparator.TextChanged += new System.EventHandler(this.textBoxScrollLoopSeparator_TextChanged); - // - // labelMinFontSize - // - this.labelMinFontSize.AutoSize = true; - this.labelMinFontSize.Location = new System.Drawing.Point(84, 194); - this.labelMinFontSize.Name = "labelMinFontSize"; - this.labelMinFontSize.Size = new System.Drawing.Size(119, 13); - this.labelMinFontSize.TabIndex = 24; - this.labelMinFontSize.Text = "Minimum font size (pts) :"; - // - // maskedTextBoxMinFontSize - // - this.maskedTextBoxMinFontSize.Location = new System.Drawing.Point(205, 191); - this.maskedTextBoxMinFontSize.Mask = "000"; - this.maskedTextBoxMinFontSize.Name = "maskedTextBoxMinFontSize"; - this.maskedTextBoxMinFontSize.PromptChar = ' '; - this.maskedTextBoxMinFontSize.Size = new System.Drawing.Size(24, 20); - this.maskedTextBoxMinFontSize.TabIndex = 23; - this.maskedTextBoxMinFontSize.TextChanged += new System.EventHandler(this.maskedTextBoxMinFontSize_TextChanged); - // - // checkBoxScaleToFit - // - this.checkBoxScaleToFit.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); - this.checkBoxScaleToFit.AutoSize = true; - this.checkBoxScaleToFit.Location = new System.Drawing.Point(87, 168); - this.checkBoxScaleToFit.Name = "checkBoxScaleToFit"; - this.checkBoxScaleToFit.Size = new System.Drawing.Size(201, 17); - this.checkBoxScaleToFit.TabIndex = 22; - this.checkBoxScaleToFit.Text = "Try scale font down to avoid scrolling"; - this.checkBoxScaleToFit.UseVisualStyleBackColor = true; - this.checkBoxScaleToFit.CheckedChanged += new System.EventHandler(this.checkBoxScaleToFit_CheckedChanged); - // - // checkBoxInverseColors - // - this.checkBoxInverseColors.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); - this.checkBoxInverseColors.AutoSize = true; - this.checkBoxInverseColors.Location = new System.Drawing.Point(485, 52); - this.checkBoxInverseColors.Name = "checkBoxInverseColors"; - this.checkBoxInverseColors.Size = new System.Drawing.Size(92, 17); - this.checkBoxInverseColors.TabIndex = 21; - this.checkBoxInverseColors.Text = "Inverse colors"; - this.checkBoxInverseColors.UseVisualStyleBackColor = true; - this.checkBoxInverseColors.CheckedChanged += new System.EventHandler(this.checkBoxInverseColors_CheckedChanged); - // - // buttonAlignRight - // - this.buttonAlignRight.Location = new System.Drawing.Point(170, 81); - this.buttonAlignRight.Name = "buttonAlignRight"; - this.buttonAlignRight.Size = new System.Drawing.Size(75, 23); - this.buttonAlignRight.TabIndex = 20; - this.buttonAlignRight.Text = "Align Right"; - this.buttonAlignRight.UseVisualStyleBackColor = true; - this.buttonAlignRight.Click += new System.EventHandler(this.buttonAlignRight_Click); - // - // buttonAlignCenter - // - this.buttonAlignCenter.Location = new System.Drawing.Point(89, 81); - this.buttonAlignCenter.Name = "buttonAlignCenter"; - this.buttonAlignCenter.Size = new System.Drawing.Size(75, 23); - this.buttonAlignCenter.TabIndex = 19; - this.buttonAlignCenter.Text = "Align Center"; - this.buttonAlignCenter.UseVisualStyleBackColor = true; - this.buttonAlignCenter.Click += new System.EventHandler(this.buttonAlignCenter_Click); - // - // buttonAlignLeft - // - this.buttonAlignLeft.Location = new System.Drawing.Point(7, 81); - this.buttonAlignLeft.Name = "buttonAlignLeft"; - this.buttonAlignLeft.Size = new System.Drawing.Size(75, 23); - this.buttonAlignLeft.TabIndex = 18; - this.buttonAlignLeft.Text = "Align Left"; - this.buttonAlignLeft.UseVisualStyleBackColor = true; - this.buttonAlignLeft.Click += new System.EventHandler(this.buttonAlignLeft_Click); - // - // buttonRemoveColumn - // - this.buttonRemoveColumn.Location = new System.Drawing.Point(88, 37); - this.buttonRemoveColumn.Name = "buttonRemoveColumn"; - this.buttonRemoveColumn.Size = new System.Drawing.Size(75, 23); - this.buttonRemoveColumn.TabIndex = 3; - this.buttonRemoveColumn.Text = "Remove col."; - this.buttonRemoveColumn.UseVisualStyleBackColor = true; - this.buttonRemoveColumn.Click += new System.EventHandler(this.buttonRemoveColumn_Click); - // - // buttonAddColumn - // - this.buttonAddColumn.Location = new System.Drawing.Point(89, 7); - this.buttonAddColumn.Name = "buttonAddColumn"; - this.buttonAddColumn.Size = new System.Drawing.Size(75, 23); - this.buttonAddColumn.TabIndex = 2; - this.buttonAddColumn.Text = "Add column"; - this.buttonAddColumn.UseVisualStyleBackColor = true; - this.buttonAddColumn.Click += new System.EventHandler(this.buttonAddColumn_Click); - // - // checkBoxReverseScreen - // - this.checkBoxReverseScreen.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); - this.checkBoxReverseScreen.AutoSize = true; - this.checkBoxReverseScreen.Location = new System.Drawing.Point(485, 6); - this.checkBoxReverseScreen.Name = "checkBoxReverseScreen"; - this.checkBoxReverseScreen.Size = new System.Drawing.Size(101, 17); - this.checkBoxReverseScreen.TabIndex = 14; - this.checkBoxReverseScreen.Text = "Reverse screen"; - this.checkBoxReverseScreen.UseVisualStyleBackColor = true; - this.checkBoxReverseScreen.CheckedChanged += new System.EventHandler(this.checkBoxReverseScreen_CheckedChanged); - // - // buttonRemoveRow - // - this.buttonRemoveRow.Location = new System.Drawing.Point(7, 37); - this.buttonRemoveRow.Name = "buttonRemoveRow"; - this.buttonRemoveRow.Size = new System.Drawing.Size(75, 23); - this.buttonRemoveRow.TabIndex = 1; - this.buttonRemoveRow.Text = "Remove row"; - this.buttonRemoveRow.UseVisualStyleBackColor = true; - this.buttonRemoveRow.Click += new System.EventHandler(this.buttonRemoveRow_Click); - // - // buttonAddRow - // - this.buttonAddRow.Location = new System.Drawing.Point(7, 7); - this.buttonAddRow.Name = "buttonAddRow"; - this.buttonAddRow.Size = new System.Drawing.Size(75, 23); - this.buttonAddRow.TabIndex = 0; - this.buttonAddRow.Text = "Add row"; - this.buttonAddRow.UseVisualStyleBackColor = true; - this.buttonAddRow.Click += new System.EventHandler(this.buttonAddRow_Click); - // - // tabPageApp - // - this.tabPageApp.Controls.Add(this.checkBoxStartMinimized); - this.tabPageApp.Controls.Add(this.checkBoxMinimizeToTray); - this.tabPageApp.Controls.Add(this.checkBoxAutoStart); - this.tabPageApp.Controls.Add(this.buttonUpdate); - this.tabPageApp.Location = new System.Drawing.Point(4, 22); - this.tabPageApp.Name = "tabPageApp"; - this.tabPageApp.Padding = new System.Windows.Forms.Padding(3); - this.tabPageApp.Size = new System.Drawing.Size(592, 242); - this.tabPageApp.TabIndex = 4; - this.tabPageApp.Text = "Application"; - this.tabPageApp.UseVisualStyleBackColor = true; - // - // checkBoxStartMinimized - // - this.checkBoxStartMinimized.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); - this.checkBoxStartMinimized.AutoSize = true; - this.checkBoxStartMinimized.Location = new System.Drawing.Point(8, 144); - this.checkBoxStartMinimized.Name = "checkBoxStartMinimized"; - this.checkBoxStartMinimized.Size = new System.Drawing.Size(96, 17); - this.checkBoxStartMinimized.TabIndex = 16; - this.checkBoxStartMinimized.Text = "Start minimized"; - this.checkBoxStartMinimized.UseVisualStyleBackColor = true; - this.checkBoxStartMinimized.CheckedChanged += new System.EventHandler(this.checkBoxStartMinimized_CheckedChanged); - // - // checkBoxMinimizeToTray - // - this.checkBoxMinimizeToTray.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); - this.checkBoxMinimizeToTray.AutoSize = true; - this.checkBoxMinimizeToTray.Location = new System.Drawing.Point(8, 167); - this.checkBoxMinimizeToTray.Name = "checkBoxMinimizeToTray"; - this.checkBoxMinimizeToTray.Size = new System.Drawing.Size(133, 17); - this.checkBoxMinimizeToTray.TabIndex = 15; - this.checkBoxMinimizeToTray.Text = "Minimize to system tray"; - this.checkBoxMinimizeToTray.UseVisualStyleBackColor = true; - this.checkBoxMinimizeToTray.CheckedChanged += new System.EventHandler(this.checkBoxMinimizeToTray_CheckedChanged); - // - // checkBoxAutoStart - // - this.checkBoxAutoStart.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); - this.checkBoxAutoStart.AutoSize = true; - this.checkBoxAutoStart.Location = new System.Drawing.Point(8, 190); - this.checkBoxAutoStart.Name = "checkBoxAutoStart"; - this.checkBoxAutoStart.Size = new System.Drawing.Size(143, 17); - this.checkBoxAutoStart.TabIndex = 14; - this.checkBoxAutoStart.Text = "Run on Windows startup"; - this.checkBoxAutoStart.UseVisualStyleBackColor = true; - this.checkBoxAutoStart.CheckedChanged += new System.EventHandler(this.checkBoxAutoStart_CheckedChanged); - // - // buttonUpdate - // - this.buttonUpdate.Location = new System.Drawing.Point(6, 213); - this.buttonUpdate.Name = "buttonUpdate"; - this.buttonUpdate.Size = new System.Drawing.Size(75, 23); - this.buttonUpdate.TabIndex = 0; - this.buttonUpdate.Text = "Update"; - this.buttonUpdate.UseVisualStyleBackColor = true; - this.buttonUpdate.Click += new System.EventHandler(this.buttonUpdate_Click); - // - // labelFontWidth - // - this.labelFontWidth.AutoSize = true; - this.labelFontWidth.Location = new System.Drawing.Point(13, 29); - this.labelFontWidth.Name = "labelFontWidth"; - this.labelFontWidth.Size = new System.Drawing.Size(56, 13); - this.labelFontWidth.TabIndex = 19; - this.labelFontWidth.Text = "Font width"; - // - // labelFontHeight - // - this.labelFontHeight.AutoSize = true; - this.labelFontHeight.Location = new System.Drawing.Point(13, 46); - this.labelFontHeight.Name = "labelFontHeight"; - this.labelFontHeight.Size = new System.Drawing.Size(60, 13); - this.labelFontHeight.TabIndex = 20; - this.labelFontHeight.Text = "Font height"; - // - // pictureBoxDemo - // - this.pictureBoxDemo.Location = new System.Drawing.Point(478, 54); - this.pictureBoxDemo.Name = "pictureBoxDemo"; - this.pictureBoxDemo.Size = new System.Drawing.Size(100, 50); - this.pictureBoxDemo.TabIndex = 21; - this.pictureBoxDemo.TabStop = false; - // - // MainForm - // - this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); - this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.ClientSize = new System.Drawing.Size(624, 442); - this.Controls.Add(this.pictureBoxDemo); - this.Controls.Add(this.labelFontHeight); - this.Controls.Add(this.labelFontWidth); - this.Controls.Add(this.labelWarning); - this.Controls.Add(this.statusStrip); - this.Controls.Add(this.tabControl); - this.Controls.Add(this.panelDisplay); - this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); - this.MinimumSize = new System.Drawing.Size(640, 480); - this.Name = "MainForm"; - this.Text = "Sharp Display Manager"; - this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.MainForm_FormClosing); - this.Load += new System.EventHandler(this.MainForm_Load); - this.SizeChanged += new System.EventHandler(this.MainForm_SizeChanged); - this.Resize += new System.EventHandler(this.MainForm_Resize); - this.panelDisplay.ResumeLayout(false); - this.tableLayoutPanel.ResumeLayout(false); - this.tableLayoutPanel.PerformLayout(); - this.statusStrip.ResumeLayout(false); - this.statusStrip.PerformLayout(); - this.tabPageClients.ResumeLayout(false); - this.tabPageDisplay.ResumeLayout(false); - this.tabPageDisplay.PerformLayout(); - ((System.ComponentModel.ISupportInitialize)(this.trackBarBrightness)).EndInit(); - this.tabControl.ResumeLayout(false); - this.tabPageDesign.ResumeLayout(false); - this.tabPageDesign.PerformLayout(); - this.tabPageApp.ResumeLayout(false); - this.tabPageApp.PerformLayout(); - ((System.ComponentModel.ISupportInitialize)(this.pictureBoxDemo)).EndInit(); - this.ResumeLayout(false); - this.PerformLayout(); + this.tabControl.Controls.Add(this.tabPageDisplay); + this.tabControl.Controls.Add(this.tabPageClients); + this.tabControl.Controls.Add(this.tabPageDesign); + this.tabControl.Controls.Add(this.tabPageApp); + this.tabControl.Location = new System.Drawing.Point(12, 139); + this.tabControl.Name = "tabControl"; + this.tabControl.SelectedIndex = 0; + this.tabControl.Size = new System.Drawing.Size(600, 268); + this.tabControl.TabIndex = 0; + // + // tabPageDesign + // + this.tabPageDesign.Controls.Add(this.labelScrollLoopSeparator); + this.tabPageDesign.Controls.Add(this.textBoxScrollLoopSeparator); + this.tabPageDesign.Controls.Add(this.labelMinFontSize); + this.tabPageDesign.Controls.Add(this.maskedTextBoxMinFontSize); + this.tabPageDesign.Controls.Add(this.checkBoxScaleToFit); + this.tabPageDesign.Controls.Add(this.checkBoxInverseColors); + this.tabPageDesign.Controls.Add(this.buttonAlignRight); + this.tabPageDesign.Controls.Add(this.buttonAlignCenter); + this.tabPageDesign.Controls.Add(this.buttonAlignLeft); + this.tabPageDesign.Controls.Add(this.buttonRemoveColumn); + this.tabPageDesign.Controls.Add(this.checkBoxFixedPitchFontOnly); + this.tabPageDesign.Controls.Add(this.buttonAddColumn); + this.tabPageDesign.Controls.Add(this.buttonFont); + this.tabPageDesign.Controls.Add(this.checkBoxReverseScreen); + this.tabPageDesign.Controls.Add(this.buttonRemoveRow); + this.tabPageDesign.Controls.Add(this.buttonAddRow); + this.tabPageDesign.Controls.Add(this.checkBoxShowBorders); + this.tabPageDesign.Location = new System.Drawing.Point(4, 22); + this.tabPageDesign.Name = "tabPageDesign"; + this.tabPageDesign.Padding = new System.Windows.Forms.Padding(3); + this.tabPageDesign.Size = new System.Drawing.Size(592, 242); + this.tabPageDesign.TabIndex = 3; + this.tabPageDesign.Text = "Design"; + this.tabPageDesign.UseVisualStyleBackColor = true; + // + // labelScrollLoopSeparator + // + this.labelScrollLoopSeparator.AutoSize = true; + this.labelScrollLoopSeparator.Location = new System.Drawing.Point(84, 145); + this.labelScrollLoopSeparator.Name = "labelScrollLoopSeparator"; + this.labelScrollLoopSeparator.Size = new System.Drawing.Size(109, 13); + this.labelScrollLoopSeparator.TabIndex = 26; + this.labelScrollLoopSeparator.Text = "Scroll loop separator :"; + // + // textBoxScrollLoopSeparator + // + this.textBoxScrollLoopSeparator.Location = new System.Drawing.Point(205, 142); + this.textBoxScrollLoopSeparator.Name = "textBoxScrollLoopSeparator"; + this.textBoxScrollLoopSeparator.Size = new System.Drawing.Size(74, 20); + this.textBoxScrollLoopSeparator.TabIndex = 25; + this.textBoxScrollLoopSeparator.TextChanged += new System.EventHandler(this.textBoxScrollLoopSeparator_TextChanged); + // + // labelMinFontSize + // + this.labelMinFontSize.AutoSize = true; + this.labelMinFontSize.Location = new System.Drawing.Point(84, 194); + this.labelMinFontSize.Name = "labelMinFontSize"; + this.labelMinFontSize.Size = new System.Drawing.Size(119, 13); + this.labelMinFontSize.TabIndex = 24; + this.labelMinFontSize.Text = "Minimum font size (pts) :"; + // + // maskedTextBoxMinFontSize + // + this.maskedTextBoxMinFontSize.Location = new System.Drawing.Point(205, 191); + this.maskedTextBoxMinFontSize.Mask = "000"; + this.maskedTextBoxMinFontSize.Name = "maskedTextBoxMinFontSize"; + this.maskedTextBoxMinFontSize.PromptChar = ' '; + this.maskedTextBoxMinFontSize.Size = new System.Drawing.Size(24, 20); + this.maskedTextBoxMinFontSize.TabIndex = 23; + this.maskedTextBoxMinFontSize.TextChanged += new System.EventHandler(this.maskedTextBoxMinFontSize_TextChanged); + // + // checkBoxScaleToFit + // + this.checkBoxScaleToFit.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); + this.checkBoxScaleToFit.AutoSize = true; + this.checkBoxScaleToFit.Location = new System.Drawing.Point(87, 168); + this.checkBoxScaleToFit.Name = "checkBoxScaleToFit"; + this.checkBoxScaleToFit.Size = new System.Drawing.Size(201, 17); + this.checkBoxScaleToFit.TabIndex = 22; + this.checkBoxScaleToFit.Text = "Try scale font down to avoid scrolling"; + this.checkBoxScaleToFit.UseVisualStyleBackColor = true; + this.checkBoxScaleToFit.CheckedChanged += new System.EventHandler(this.checkBoxScaleToFit_CheckedChanged); + // + // checkBoxInverseColors + // + this.checkBoxInverseColors.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); + this.checkBoxInverseColors.AutoSize = true; + this.checkBoxInverseColors.Location = new System.Drawing.Point(485, 52); + this.checkBoxInverseColors.Name = "checkBoxInverseColors"; + this.checkBoxInverseColors.Size = new System.Drawing.Size(92, 17); + this.checkBoxInverseColors.TabIndex = 21; + this.checkBoxInverseColors.Text = "Inverse colors"; + this.checkBoxInverseColors.UseVisualStyleBackColor = true; + this.checkBoxInverseColors.CheckedChanged += new System.EventHandler(this.checkBoxInverseColors_CheckedChanged); + // + // buttonAlignRight + // + this.buttonAlignRight.Location = new System.Drawing.Point(170, 81); + this.buttonAlignRight.Name = "buttonAlignRight"; + this.buttonAlignRight.Size = new System.Drawing.Size(75, 23); + this.buttonAlignRight.TabIndex = 20; + this.buttonAlignRight.Text = "Align Right"; + this.buttonAlignRight.UseVisualStyleBackColor = true; + this.buttonAlignRight.Click += new System.EventHandler(this.buttonAlignRight_Click); + // + // buttonAlignCenter + // + this.buttonAlignCenter.Location = new System.Drawing.Point(89, 81); + this.buttonAlignCenter.Name = "buttonAlignCenter"; + this.buttonAlignCenter.Size = new System.Drawing.Size(75, 23); + this.buttonAlignCenter.TabIndex = 19; + this.buttonAlignCenter.Text = "Align Center"; + this.buttonAlignCenter.UseVisualStyleBackColor = true; + this.buttonAlignCenter.Click += new System.EventHandler(this.buttonAlignCenter_Click); + // + // buttonAlignLeft + // + this.buttonAlignLeft.Location = new System.Drawing.Point(7, 81); + this.buttonAlignLeft.Name = "buttonAlignLeft"; + this.buttonAlignLeft.Size = new System.Drawing.Size(75, 23); + this.buttonAlignLeft.TabIndex = 18; + this.buttonAlignLeft.Text = "Align Left"; + this.buttonAlignLeft.UseVisualStyleBackColor = true; + this.buttonAlignLeft.Click += new System.EventHandler(this.buttonAlignLeft_Click); + // + // buttonRemoveColumn + // + this.buttonRemoveColumn.Location = new System.Drawing.Point(88, 37); + this.buttonRemoveColumn.Name = "buttonRemoveColumn"; + this.buttonRemoveColumn.Size = new System.Drawing.Size(75, 23); + this.buttonRemoveColumn.TabIndex = 3; + this.buttonRemoveColumn.Text = "Remove col."; + this.buttonRemoveColumn.UseVisualStyleBackColor = true; + this.buttonRemoveColumn.Click += new System.EventHandler(this.buttonRemoveColumn_Click); + // + // buttonAddColumn + // + this.buttonAddColumn.Location = new System.Drawing.Point(89, 7); + this.buttonAddColumn.Name = "buttonAddColumn"; + this.buttonAddColumn.Size = new System.Drawing.Size(75, 23); + this.buttonAddColumn.TabIndex = 2; + this.buttonAddColumn.Text = "Add column"; + this.buttonAddColumn.UseVisualStyleBackColor = true; + this.buttonAddColumn.Click += new System.EventHandler(this.buttonAddColumn_Click); + // + // checkBoxReverseScreen + // + this.checkBoxReverseScreen.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); + this.checkBoxReverseScreen.AutoSize = true; + this.checkBoxReverseScreen.Location = new System.Drawing.Point(485, 6); + this.checkBoxReverseScreen.Name = "checkBoxReverseScreen"; + this.checkBoxReverseScreen.Size = new System.Drawing.Size(101, 17); + this.checkBoxReverseScreen.TabIndex = 14; + this.checkBoxReverseScreen.Text = "Reverse screen"; + this.checkBoxReverseScreen.UseVisualStyleBackColor = true; + this.checkBoxReverseScreen.CheckedChanged += new System.EventHandler(this.checkBoxReverseScreen_CheckedChanged); + // + // buttonRemoveRow + // + this.buttonRemoveRow.Location = new System.Drawing.Point(7, 37); + this.buttonRemoveRow.Name = "buttonRemoveRow"; + this.buttonRemoveRow.Size = new System.Drawing.Size(75, 23); + this.buttonRemoveRow.TabIndex = 1; + this.buttonRemoveRow.Text = "Remove row"; + this.buttonRemoveRow.UseVisualStyleBackColor = true; + this.buttonRemoveRow.Click += new System.EventHandler(this.buttonRemoveRow_Click); + // + // buttonAddRow + // + this.buttonAddRow.Location = new System.Drawing.Point(7, 7); + this.buttonAddRow.Name = "buttonAddRow"; + this.buttonAddRow.Size = new System.Drawing.Size(75, 23); + this.buttonAddRow.TabIndex = 0; + this.buttonAddRow.Text = "Add row"; + this.buttonAddRow.UseVisualStyleBackColor = true; + this.buttonAddRow.Click += new System.EventHandler(this.buttonAddRow_Click); + // + // tabPageApp + // + this.tabPageApp.Controls.Add(this.checkBoxStartMinimized); + this.tabPageApp.Controls.Add(this.checkBoxMinimizeToTray); + this.tabPageApp.Controls.Add(this.checkBoxAutoStart); + this.tabPageApp.Controls.Add(this.buttonUpdate); + this.tabPageApp.Location = new System.Drawing.Point(4, 22); + this.tabPageApp.Name = "tabPageApp"; + this.tabPageApp.Padding = new System.Windows.Forms.Padding(3); + this.tabPageApp.Size = new System.Drawing.Size(592, 242); + this.tabPageApp.TabIndex = 4; + this.tabPageApp.Text = "Application"; + this.tabPageApp.UseVisualStyleBackColor = true; + // + // checkBoxStartMinimized + // + this.checkBoxStartMinimized.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); + this.checkBoxStartMinimized.AutoSize = true; + this.checkBoxStartMinimized.Location = new System.Drawing.Point(8, 144); + this.checkBoxStartMinimized.Name = "checkBoxStartMinimized"; + this.checkBoxStartMinimized.Size = new System.Drawing.Size(96, 17); + this.checkBoxStartMinimized.TabIndex = 16; + this.checkBoxStartMinimized.Text = "Start minimized"; + this.checkBoxStartMinimized.UseVisualStyleBackColor = true; + this.checkBoxStartMinimized.CheckedChanged += new System.EventHandler(this.checkBoxStartMinimized_CheckedChanged); + // + // checkBoxMinimizeToTray + // + this.checkBoxMinimizeToTray.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); + this.checkBoxMinimizeToTray.AutoSize = true; + this.checkBoxMinimizeToTray.Location = new System.Drawing.Point(8, 167); + this.checkBoxMinimizeToTray.Name = "checkBoxMinimizeToTray"; + this.checkBoxMinimizeToTray.Size = new System.Drawing.Size(133, 17); + this.checkBoxMinimizeToTray.TabIndex = 15; + this.checkBoxMinimizeToTray.Text = "Minimize to system tray"; + this.checkBoxMinimizeToTray.UseVisualStyleBackColor = true; + this.checkBoxMinimizeToTray.CheckedChanged += new System.EventHandler(this.checkBoxMinimizeToTray_CheckedChanged); + // + // checkBoxAutoStart + // + this.checkBoxAutoStart.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); + this.checkBoxAutoStart.AutoSize = true; + this.checkBoxAutoStart.Location = new System.Drawing.Point(8, 190); + this.checkBoxAutoStart.Name = "checkBoxAutoStart"; + this.checkBoxAutoStart.Size = new System.Drawing.Size(143, 17); + this.checkBoxAutoStart.TabIndex = 14; + this.checkBoxAutoStart.Text = "Run on Windows startup"; + this.checkBoxAutoStart.UseVisualStyleBackColor = true; + this.checkBoxAutoStart.CheckedChanged += new System.EventHandler(this.checkBoxAutoStart_CheckedChanged); + // + // buttonUpdate + // + this.buttonUpdate.Location = new System.Drawing.Point(6, 213); + this.buttonUpdate.Name = "buttonUpdate"; + this.buttonUpdate.Size = new System.Drawing.Size(75, 23); + this.buttonUpdate.TabIndex = 0; + this.buttonUpdate.Text = "Update"; + this.buttonUpdate.UseVisualStyleBackColor = true; + this.buttonUpdate.Click += new System.EventHandler(this.buttonUpdate_Click); + // + // labelFontWidth + // + this.labelFontWidth.AutoSize = true; + this.labelFontWidth.Location = new System.Drawing.Point(13, 29); + this.labelFontWidth.Name = "labelFontWidth"; + this.labelFontWidth.Size = new System.Drawing.Size(56, 13); + this.labelFontWidth.TabIndex = 19; + this.labelFontWidth.Text = "Font width"; + // + // labelFontHeight + // + this.labelFontHeight.AutoSize = true; + this.labelFontHeight.Location = new System.Drawing.Point(13, 46); + this.labelFontHeight.Name = "labelFontHeight"; + this.labelFontHeight.Size = new System.Drawing.Size(60, 13); + this.labelFontHeight.TabIndex = 20; + this.labelFontHeight.Text = "Font height"; + // + // pictureBoxDemo + // + this.pictureBoxDemo.Location = new System.Drawing.Point(478, 54); + this.pictureBoxDemo.Name = "pictureBoxDemo"; + this.pictureBoxDemo.Size = new System.Drawing.Size(100, 50); + this.pictureBoxDemo.TabIndex = 21; + this.pictureBoxDemo.TabStop = false; + // + // MainForm + // + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.ClientSize = new System.Drawing.Size(624, 442); + this.Controls.Add(this.pictureBoxDemo); + this.Controls.Add(this.labelFontHeight); + this.Controls.Add(this.labelFontWidth); + this.Controls.Add(this.labelWarning); + this.Controls.Add(this.statusStrip); + this.Controls.Add(this.tabControl); + this.Controls.Add(this.panelDisplay); + this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); + this.MinimumSize = new System.Drawing.Size(640, 480); + this.Name = "MainForm"; + this.Text = "Sharp Display Manager"; + this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.MainForm_FormClosing); + this.Load += new System.EventHandler(this.MainForm_Load); + this.SizeChanged += new System.EventHandler(this.MainForm_SizeChanged); + this.Resize += new System.EventHandler(this.MainForm_Resize); + this.panelDisplay.ResumeLayout(false); + this.tableLayoutPanel.ResumeLayout(false); + this.tableLayoutPanel.PerformLayout(); + this.statusStrip.ResumeLayout(false); + this.statusStrip.PerformLayout(); + this.tabPageClients.ResumeLayout(false); + this.tabPageDisplay.ResumeLayout(false); + this.tabPageDisplay.PerformLayout(); + ((System.ComponentModel.ISupportInitialize)(this.trackBarBrightness)).EndInit(); + this.tabControl.ResumeLayout(false); + this.tabPageDesign.ResumeLayout(false); + this.tabPageDesign.PerformLayout(); + this.tabPageApp.ResumeLayout(false); + this.tabPageApp.PerformLayout(); + ((System.ComponentModel.ISupportInitialize)(this.pictureBoxDemo)).EndInit(); + this.ResumeLayout(false); + this.PerformLayout(); } diff -r 189aac7dd3d6 -r 4196b0ca97d9 Server/MainForm.cs --- a/Server/MainForm.cs Wed Feb 04 17:44:25 2015 +0100 +++ b/Server/MainForm.cs Wed Feb 04 21:55:45 2015 +0100 @@ -108,6 +108,14 @@ /// private void OnDisplayOpened(Display aDisplay) { + //Set our screen size now that our display is connected + //Our panelDisplay is the container of our tableLayoutPanel + //tableLayoutPanel will resize itself to fit the client size of our panelDisplay + //panelDisplay needs an extra 2 pixels for borders on each sides + //tableLayoutPanel will eventually be the exact size of our display + Size size = new Size(iDisplay.WidthInPixels() + 2, iDisplay.HeightInPixels() + 2); + panelDisplay.Size = size; + //Our display was just opened, update our UI UpdateStatus(); //Initiate asynchronous request @@ -692,18 +700,29 @@ //We have a display connection //Reflect that in our UI - //Set our screen size - tableLayoutPanel.Width = iDisplay.WidthInPixels(); - tableLayoutPanel.Height = iDisplay.HeightInPixels(); tableLayoutPanel.Enabled = true; + panelDisplay.Enabled = true; //Only setup brightness if display is open trackBarBrightness.Minimum = iDisplay.MinBrightness(); trackBarBrightness.Maximum = iDisplay.MaxBrightness(); - trackBarBrightness.Value = cds.Brightness; + if (cds.Brightness < iDisplay.MinBrightness() || cds.Brightness > iDisplay.MaxBrightness()) + { + //Brightness out of range, this can occur when using auto-detect + //Use max brightness instead + trackBarBrightness.Value = iDisplay.MaxBrightness(); + iDisplay.SetBrightness(iDisplay.MaxBrightness()); + } + else + { + trackBarBrightness.Value = cds.Brightness; + iDisplay.SetBrightness(cds.Brightness); + } + + //Try compute the steps to something that makes sense trackBarBrightness.LargeChange = Math.Max(1, (iDisplay.MaxBrightness() - iDisplay.MinBrightness()) / 5); trackBarBrightness.SmallChange = 1; - iDisplay.SetBrightness(cds.Brightness); + // buttonFill.Enabled = true; buttonClear.Enabled = true; @@ -740,6 +759,7 @@ //Display is connection not available //Reflect that in our UI tableLayoutPanel.Enabled = false; + panelDisplay.Enabled = false; buttonFill.Enabled = false; buttonClear.Enabled = false; buttonOpen.Enabled = true; @@ -831,6 +851,7 @@ private void MainForm_FormClosing(object sender, FormClosingEventArgs e) { + CloseDisplayConnection(); StopServer(); e.Cancel = iClosing; } @@ -1700,8 +1721,17 @@ } - - + /// + /// + /// + /// + /// + private void tableLayoutPanel_SizeChanged(object sender, EventArgs e) + { + //Our table layout size has changed which means our display size has changed. + //We need to re-create our bitmap. + iCreateBitmap = true; + } }