Adding option to select fixed pitch font only.
authorsl
Thu, 14 Aug 2014 10:41:44 +0200
changeset 282aa3974c485f
parent 27 9c49c04fc620
child 29 c4e03315035c
Adding option to select fixed pitch font only.
Server/MainForm.Designer.cs
Server/MainForm.cs
     1.1 --- a/Server/MainForm.Designer.cs	Thu Aug 14 10:19:53 2014 +0200
     1.2 +++ b/Server/MainForm.Designer.cs	Thu Aug 14 10:41:44 2014 +0200
     1.3 @@ -31,10 +31,14 @@
     1.4              this.components = new System.ComponentModel.Container();
     1.5              this.tabControl = new System.Windows.Forms.TabControl();
     1.6              this.tabPageDisplay = new System.Windows.Forms.TabPage();
     1.7 +            this.buttonSuspend = new System.Windows.Forms.Button();
     1.8 +            this.buttonStartClient = new System.Windows.Forms.Button();
     1.9              this.checkBoxReverseScreen = new System.Windows.Forms.CheckBox();
    1.10              this.checkBoxConnectOnStartup = new System.Windows.Forms.CheckBox();
    1.11              this.panelDisplay = new System.Windows.Forms.Panel();
    1.12              this.tableLayoutPanel = new System.Windows.Forms.TableLayoutPanel();
    1.13 +            this.marqueeLabelTop = new SharpDisplayManager.MarqueeLabel();
    1.14 +            this.marqueeLabelBottom = new SharpDisplayManager.MarqueeLabel();
    1.15              this.checkBoxShowBorders = new System.Windows.Forms.CheckBox();
    1.16              this.trackBarBrightness = new System.Windows.Forms.TrackBar();
    1.17              this.buttonFill = new System.Windows.Forms.Button();
    1.18 @@ -51,10 +55,7 @@
    1.19              this.toolStripStatusLabelSpring = new System.Windows.Forms.ToolStripStatusLabel();
    1.20              this.toolStripStatusLabelPower = new System.Windows.Forms.ToolStripStatusLabel();
    1.21              this.toolStripStatusLabelFps = new System.Windows.Forms.ToolStripStatusLabel();
    1.22 -            this.buttonStartClient = new System.Windows.Forms.Button();
    1.23 -            this.buttonSuspend = new System.Windows.Forms.Button();
    1.24 -            this.marqueeLabelTop = new SharpDisplayManager.MarqueeLabel();
    1.25 -            this.marqueeLabelBottom = new SharpDisplayManager.MarqueeLabel();
    1.26 +            this.checkBoxFixedPitchFontOnly = new System.Windows.Forms.CheckBox();
    1.27              this.tabControl.SuspendLayout();
    1.28              this.tabPageDisplay.SuspendLayout();
    1.29              this.panelDisplay.SuspendLayout();
    1.30 @@ -78,6 +79,7 @@
    1.31              // 
    1.32              // tabPageDisplay
    1.33              // 
    1.34 +            this.tabPageDisplay.Controls.Add(this.checkBoxFixedPitchFontOnly);
    1.35              this.tabPageDisplay.Controls.Add(this.buttonSuspend);
    1.36              this.tabPageDisplay.Controls.Add(this.buttonStartClient);
    1.37              this.tabPageDisplay.Controls.Add(this.checkBoxReverseScreen);
    1.38 @@ -99,6 +101,26 @@
    1.39              this.tabPageDisplay.Text = "Display";
    1.40              this.tabPageDisplay.UseVisualStyleBackColor = true;
    1.41              // 
    1.42 +            // buttonSuspend
    1.43 +            // 
    1.44 +            this.buttonSuspend.Location = new System.Drawing.Point(7, 253);
    1.45 +            this.buttonSuspend.Name = "buttonSuspend";
    1.46 +            this.buttonSuspend.Size = new System.Drawing.Size(75, 23);
    1.47 +            this.buttonSuspend.TabIndex = 16;
    1.48 +            this.buttonSuspend.Text = "Suspend";
    1.49 +            this.buttonSuspend.UseVisualStyleBackColor = true;
    1.50 +            this.buttonSuspend.Click += new System.EventHandler(this.buttonSuspend_Click);
    1.51 +            // 
    1.52 +            // buttonStartClient
    1.53 +            // 
    1.54 +            this.buttonStartClient.Location = new System.Drawing.Point(6, 282);
    1.55 +            this.buttonStartClient.Name = "buttonStartClient";
    1.56 +            this.buttonStartClient.Size = new System.Drawing.Size(75, 23);
    1.57 +            this.buttonStartClient.TabIndex = 15;
    1.58 +            this.buttonStartClient.Text = "Start Client";
    1.59 +            this.buttonStartClient.UseVisualStyleBackColor = true;
    1.60 +            this.buttonStartClient.Click += new System.EventHandler(this.buttonStartClient_Click);
    1.61 +            // 
    1.62              // checkBoxReverseScreen
    1.63              // 
    1.64              this.checkBoxReverseScreen.AutoSize = true;
    1.65 @@ -206,6 +228,39 @@
    1.66              this.tableLayoutPanel.Size = new System.Drawing.Size(256, 64);
    1.67              this.tableLayoutPanel.TabIndex = 5;
    1.68              // 
    1.69 +            // marqueeLabelTop
    1.70 +            // 
    1.71 +            this.marqueeLabelTop.AutoEllipsis = true;
    1.72 +            this.marqueeLabelTop.BackColor = System.Drawing.Color.Transparent;
    1.73 +            this.marqueeLabelTop.Dock = System.Windows.Forms.DockStyle.Fill;
    1.74 +            this.marqueeLabelTop.Location = new System.Drawing.Point(1, 1);
    1.75 +            this.marqueeLabelTop.Margin = new System.Windows.Forms.Padding(0);
    1.76 +            this.marqueeLabelTop.Name = "marqueeLabelTop";
    1.77 +            this.marqueeLabelTop.OwnTimer = false;
    1.78 +            this.marqueeLabelTop.PixelsPerSecond = 64;
    1.79 +            this.marqueeLabelTop.Separator = "|";
    1.80 +            this.marqueeLabelTop.Size = new System.Drawing.Size(254, 30);
    1.81 +            this.marqueeLabelTop.TabIndex = 2;
    1.82 +            this.marqueeLabelTop.Text = "ABCDEFGHIJKLMNOPQRST-0123456789";
    1.83 +            this.marqueeLabelTop.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
    1.84 +            this.marqueeLabelTop.UseCompatibleTextRendering = true;
    1.85 +            // 
    1.86 +            // marqueeLabelBottom
    1.87 +            // 
    1.88 +            this.marqueeLabelBottom.AutoEllipsis = true;
    1.89 +            this.marqueeLabelBottom.Dock = System.Windows.Forms.DockStyle.Fill;
    1.90 +            this.marqueeLabelBottom.Location = new System.Drawing.Point(1, 32);
    1.91 +            this.marqueeLabelBottom.Margin = new System.Windows.Forms.Padding(0);
    1.92 +            this.marqueeLabelBottom.Name = "marqueeLabelBottom";
    1.93 +            this.marqueeLabelBottom.OwnTimer = false;
    1.94 +            this.marqueeLabelBottom.PixelsPerSecond = 64;
    1.95 +            this.marqueeLabelBottom.Separator = null;
    1.96 +            this.marqueeLabelBottom.Size = new System.Drawing.Size(254, 31);
    1.97 +            this.marqueeLabelBottom.TabIndex = 3;
    1.98 +            this.marqueeLabelBottom.Text = "abcdefghijklmnopqrst-0123456789";
    1.99 +            this.marqueeLabelBottom.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
   1.100 +            this.marqueeLabelBottom.UseCompatibleTextRendering = true;
   1.101 +            // 
   1.102              // checkBoxShowBorders
   1.103              // 
   1.104              this.checkBoxShowBorders.AutoSize = true;
   1.105 @@ -346,58 +401,15 @@
   1.106              this.toolStripStatusLabelFps.Size = new System.Drawing.Size(26, 17);
   1.107              this.toolStripStatusLabelFps.Text = "FPS";
   1.108              // 
   1.109 -            // buttonStartClient
   1.110 +            // checkBoxFixedPitchFontOnly
   1.111              // 
   1.112 -            this.buttonStartClient.Location = new System.Drawing.Point(6, 282);
   1.113 -            this.buttonStartClient.Name = "buttonStartClient";
   1.114 -            this.buttonStartClient.Size = new System.Drawing.Size(75, 23);
   1.115 -            this.buttonStartClient.TabIndex = 15;
   1.116 -            this.buttonStartClient.Text = "Start Client";
   1.117 -            this.buttonStartClient.UseVisualStyleBackColor = true;
   1.118 -            this.buttonStartClient.Click += new System.EventHandler(this.buttonStartClient_Click);
   1.119 -            // 
   1.120 -            // buttonSuspend
   1.121 -            // 
   1.122 -            this.buttonSuspend.Location = new System.Drawing.Point(7, 253);
   1.123 -            this.buttonSuspend.Name = "buttonSuspend";
   1.124 -            this.buttonSuspend.Size = new System.Drawing.Size(75, 23);
   1.125 -            this.buttonSuspend.TabIndex = 16;
   1.126 -            this.buttonSuspend.Text = "Suspend";
   1.127 -            this.buttonSuspend.UseVisualStyleBackColor = true;
   1.128 -            this.buttonSuspend.Click += new System.EventHandler(this.buttonSuspend_Click);
   1.129 -            // 
   1.130 -            // marqueeLabelTop
   1.131 -            // 
   1.132 -            this.marqueeLabelTop.AutoEllipsis = true;
   1.133 -            this.marqueeLabelTop.BackColor = System.Drawing.Color.Transparent;
   1.134 -            this.marqueeLabelTop.Dock = System.Windows.Forms.DockStyle.Fill;
   1.135 -            this.marqueeLabelTop.Location = new System.Drawing.Point(1, -376);
   1.136 -            this.marqueeLabelTop.Margin = new System.Windows.Forms.Padding(0);
   1.137 -            this.marqueeLabelTop.Name = "marqueeLabelTop";
   1.138 -            this.marqueeLabelTop.OwnTimer = false;
   1.139 -            this.marqueeLabelTop.PixelsPerSecond = 64;
   1.140 -            this.marqueeLabelTop.Separator = "|";
   1.141 -            this.marqueeLabelTop.Size = new System.Drawing.Size(254, 20);
   1.142 -            this.marqueeLabelTop.TabIndex = 2;
   1.143 -            this.marqueeLabelTop.Text = "ABCDEFGHIJKLMNOPQRST-0123456789";
   1.144 -            this.marqueeLabelTop.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
   1.145 -            this.marqueeLabelTop.UseCompatibleTextRendering = true;
   1.146 -            // 
   1.147 -            // marqueeLabelBottom
   1.148 -            // 
   1.149 -            this.marqueeLabelBottom.AutoEllipsis = true;
   1.150 -            this.marqueeLabelBottom.Dock = System.Windows.Forms.DockStyle.Fill;
   1.151 -            this.marqueeLabelBottom.Location = new System.Drawing.Point(1, -250);
   1.152 -            this.marqueeLabelBottom.Margin = new System.Windows.Forms.Padding(0);
   1.153 -            this.marqueeLabelBottom.Name = "marqueeLabelBottom";
   1.154 -            this.marqueeLabelBottom.OwnTimer = false;
   1.155 -            this.marqueeLabelBottom.PixelsPerSecond = 64;
   1.156 -            this.marqueeLabelBottom.Separator = null;
   1.157 -            this.marqueeLabelBottom.Size = new System.Drawing.Size(254, 20);
   1.158 -            this.marqueeLabelBottom.TabIndex = 3;
   1.159 -            this.marqueeLabelBottom.Text = "abcdefghijklmnopqrst-0123456789";
   1.160 -            this.marqueeLabelBottom.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
   1.161 -            this.marqueeLabelBottom.UseCompatibleTextRendering = true;
   1.162 +            this.checkBoxFixedPitchFontOnly.AutoSize = true;
   1.163 +            this.checkBoxFixedPitchFontOnly.Location = new System.Drawing.Point(113, 275);
   1.164 +            this.checkBoxFixedPitchFontOnly.Name = "checkBoxFixedPitchFontOnly";
   1.165 +            this.checkBoxFixedPitchFontOnly.Size = new System.Drawing.Size(120, 17);
   1.166 +            this.checkBoxFixedPitchFontOnly.TabIndex = 17;
   1.167 +            this.checkBoxFixedPitchFontOnly.Text = "Fixed pitch font only";
   1.168 +            this.checkBoxFixedPitchFontOnly.UseVisualStyleBackColor = true;
   1.169              // 
   1.170              // MainForm
   1.171              // 
   1.172 @@ -453,6 +465,7 @@
   1.173          private System.Windows.Forms.CheckBox checkBoxReverseScreen;
   1.174          private System.Windows.Forms.Button buttonStartClient;
   1.175          private System.Windows.Forms.Button buttonSuspend;
   1.176 +        private System.Windows.Forms.CheckBox checkBoxFixedPitchFontOnly;
   1.177      }
   1.178  }
   1.179  
     2.1 --- a/Server/MainForm.cs	Thu Aug 14 10:19:53 2014 +0200
     2.2 +++ b/Server/MainForm.cs	Thu Aug 14 10:41:44 2014 +0200
     2.3 @@ -71,6 +71,9 @@
     2.4              //fontDialog.ShowApply = true;
     2.5              fontDialog.ShowEffects = true;
     2.6              fontDialog.Font = marqueeLabelTop.Font;
     2.7 +
     2.8 +            fontDialog.FixedPitchOnly = checkBoxFixedPitchFontOnly.Checked;
     2.9 +
    2.10              //fontDialog.ShowHelp = true;
    2.11  
    2.12              //fontDlg.MaxSize = 40;