Adding persistent settings and marquee separator.
1 namespace SharpDisplayManager
6 /// Required designer variable.
8 private System.ComponentModel.IContainer components = null;
11 /// Clean up any resources being used.
13 /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
14 protected override void Dispose(bool disposing)
16 if (disposing && (components != null))
20 base.Dispose(disposing);
23 #region Windows Form Designer generated code
26 /// Required method for Designer support - do not modify
27 /// the contents of this method with the code editor.
29 private void InitializeComponent()
31 this.components = new System.ComponentModel.Container();
32 this.tabControl = new System.Windows.Forms.TabControl();
33 this.tabPageDisplay = new System.Windows.Forms.TabPage();
34 this.trackBarBrightness = new System.Windows.Forms.TrackBar();
35 this.buttonFill = new System.Windows.Forms.Button();
36 this.buttonClear = new System.Windows.Forms.Button();
37 this.buttonClose = new System.Windows.Forms.Button();
38 this.buttonOpen = new System.Windows.Forms.Button();
39 this.buttonCapture = new System.Windows.Forms.Button();
40 this.tableLayoutPanel = new System.Windows.Forms.TableLayoutPanel();
41 this.marqueeLabelTop = new SharpDisplayManager.MarqueeLabel();
42 this.marqueeLabelBottom = new SharpDisplayManager.MarqueeLabel();
43 this.buttonFont = new System.Windows.Forms.Button();
44 this.tabPageTests = new System.Windows.Forms.TabPage();
45 this.fontDialog = new System.Windows.Forms.FontDialog();
46 this.timer = new System.Windows.Forms.Timer(this.components);
47 this.statusStrip = new System.Windows.Forms.StatusStrip();
48 this.toolStripStatusLabelConnect = new System.Windows.Forms.ToolStripStatusLabel();
49 this.toolStripStatusLabelSpring = new System.Windows.Forms.ToolStripStatusLabel();
50 this.toolStripStatusLabelFps = new System.Windows.Forms.ToolStripStatusLabel();
51 this.tabControl.SuspendLayout();
52 this.tabPageDisplay.SuspendLayout();
53 ((System.ComponentModel.ISupportInitialize)(this.trackBarBrightness)).BeginInit();
54 this.tableLayoutPanel.SuspendLayout();
55 this.statusStrip.SuspendLayout();
60 this.tabControl.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
61 | System.Windows.Forms.AnchorStyles.Left)
62 | System.Windows.Forms.AnchorStyles.Right)));
63 this.tabControl.Controls.Add(this.tabPageDisplay);
64 this.tabControl.Controls.Add(this.tabPageTests);
65 this.tabControl.Location = new System.Drawing.Point(12, 12);
66 this.tabControl.Name = "tabControl";
67 this.tabControl.SelectedIndex = 0;
68 this.tabControl.Size = new System.Drawing.Size(600, 395);
69 this.tabControl.TabIndex = 0;
73 this.tabPageDisplay.Controls.Add(this.trackBarBrightness);
74 this.tabPageDisplay.Controls.Add(this.buttonFill);
75 this.tabPageDisplay.Controls.Add(this.buttonClear);
76 this.tabPageDisplay.Controls.Add(this.buttonClose);
77 this.tabPageDisplay.Controls.Add(this.buttonOpen);
78 this.tabPageDisplay.Controls.Add(this.buttonCapture);
79 this.tabPageDisplay.Controls.Add(this.tableLayoutPanel);
80 this.tabPageDisplay.Controls.Add(this.buttonFont);
81 this.tabPageDisplay.Location = new System.Drawing.Point(4, 22);
82 this.tabPageDisplay.Name = "tabPageDisplay";
83 this.tabPageDisplay.Padding = new System.Windows.Forms.Padding(3);
84 this.tabPageDisplay.Size = new System.Drawing.Size(592, 369);
85 this.tabPageDisplay.TabIndex = 0;
86 this.tabPageDisplay.Text = "Display";
87 this.tabPageDisplay.UseVisualStyleBackColor = true;
91 this.trackBarBrightness.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
92 | System.Windows.Forms.AnchorStyles.Right)));
93 this.trackBarBrightness.BackColor = System.Drawing.SystemColors.Window;
94 this.trackBarBrightness.Location = new System.Drawing.Point(544, 9);
95 this.trackBarBrightness.Name = "trackBarBrightness";
96 this.trackBarBrightness.Orientation = System.Windows.Forms.Orientation.Vertical;
97 this.trackBarBrightness.Size = new System.Drawing.Size(45, 357);
98 this.trackBarBrightness.TabIndex = 10;
99 this.trackBarBrightness.TickStyle = System.Windows.Forms.TickStyle.Both;
100 this.trackBarBrightness.Scroll += new System.EventHandler(this.trackBarBrightness_Scroll);
104 this.buttonFill.Location = new System.Drawing.Point(6, 93);
105 this.buttonFill.Name = "buttonFill";
106 this.buttonFill.Size = new System.Drawing.Size(75, 23);
107 this.buttonFill.TabIndex = 9;
108 this.buttonFill.Text = "Fill";
109 this.buttonFill.UseVisualStyleBackColor = true;
110 this.buttonFill.Click += new System.EventHandler(this.buttonFill_Click);
114 this.buttonClear.Location = new System.Drawing.Point(6, 64);
115 this.buttonClear.Name = "buttonClear";
116 this.buttonClear.Size = new System.Drawing.Size(75, 23);
117 this.buttonClear.TabIndex = 8;
118 this.buttonClear.Text = "Clear";
119 this.buttonClear.UseVisualStyleBackColor = true;
120 this.buttonClear.Click += new System.EventHandler(this.buttonClear_Click);
124 this.buttonClose.Location = new System.Drawing.Point(6, 35);
125 this.buttonClose.Name = "buttonClose";
126 this.buttonClose.Size = new System.Drawing.Size(75, 23);
127 this.buttonClose.TabIndex = 7;
128 this.buttonClose.Text = "Close";
129 this.buttonClose.UseVisualStyleBackColor = true;
130 this.buttonClose.Click += new System.EventHandler(this.buttonClose_Click);
134 this.buttonOpen.Location = new System.Drawing.Point(6, 6);
135 this.buttonOpen.Name = "buttonOpen";
136 this.buttonOpen.Size = new System.Drawing.Size(75, 23);
137 this.buttonOpen.TabIndex = 6;
138 this.buttonOpen.Text = "Open";
139 this.buttonOpen.UseVisualStyleBackColor = true;
140 this.buttonOpen.Click += new System.EventHandler(this.buttonOpen_Click);
144 this.buttonCapture.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
145 this.buttonCapture.Location = new System.Drawing.Point(6, 311);
146 this.buttonCapture.Name = "buttonCapture";
147 this.buttonCapture.Size = new System.Drawing.Size(75, 23);
148 this.buttonCapture.TabIndex = 5;
149 this.buttonCapture.Text = "Capture";
150 this.buttonCapture.UseVisualStyleBackColor = true;
151 this.buttonCapture.Click += new System.EventHandler(this.buttonCapture_Click);
155 this.tableLayoutPanel.CellBorderStyle = System.Windows.Forms.TableLayoutPanelCellBorderStyle.Single;
156 this.tableLayoutPanel.ColumnCount = 1;
157 this.tableLayoutPanel.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 50F));
158 this.tableLayoutPanel.Controls.Add(this.marqueeLabelTop, 0, 0);
159 this.tableLayoutPanel.Controls.Add(this.marqueeLabelBottom, 0, 1);
160 this.tableLayoutPanel.Location = new System.Drawing.Point(180, 161);
161 this.tableLayoutPanel.Margin = new System.Windows.Forms.Padding(0);
162 this.tableLayoutPanel.Name = "tableLayoutPanel";
163 this.tableLayoutPanel.RowCount = 2;
164 this.tableLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 50F));
165 this.tableLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 50F));
166 this.tableLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 20F));
167 this.tableLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 20F));
168 this.tableLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 20F));
169 this.tableLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 20F));
170 this.tableLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 20F));
171 this.tableLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 20F));
172 this.tableLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 20F));
173 this.tableLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 20F));
174 this.tableLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 20F));
175 this.tableLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 20F));
176 this.tableLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 20F));
177 this.tableLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 20F));
178 this.tableLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 20F));
179 this.tableLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 20F));
180 this.tableLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 20F));
181 this.tableLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 20F));
182 this.tableLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 20F));
183 this.tableLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 20F));
184 this.tableLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 20F));
185 this.tableLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 20F));
186 this.tableLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 20F));
187 this.tableLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 20F));
188 this.tableLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 20F));
189 this.tableLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 20F));
190 this.tableLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 20F));
191 this.tableLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 20F));
192 this.tableLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 20F));
193 this.tableLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 20F));
194 this.tableLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 20F));
195 this.tableLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 20F));
196 this.tableLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 20F));
197 this.tableLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 20F));
198 this.tableLayoutPanel.Size = new System.Drawing.Size(256, 64);
199 this.tableLayoutPanel.TabIndex = 4;
203 this.marqueeLabelTop.AutoEllipsis = true;
204 this.marqueeLabelTop.BackColor = System.Drawing.Color.Transparent;
205 this.marqueeLabelTop.Dock = System.Windows.Forms.DockStyle.Fill;
206 this.marqueeLabelTop.Location = new System.Drawing.Point(1, 1);
207 this.marqueeLabelTop.Margin = new System.Windows.Forms.Padding(0);
208 this.marqueeLabelTop.Name = "marqueeLabelTop";
209 this.marqueeLabelTop.OwnTimer = false;
210 this.marqueeLabelTop.PixelsPerSecond = 64;
211 this.marqueeLabelTop.Separator = "";
212 this.marqueeLabelTop.Size = new System.Drawing.Size(254, 30);
213 this.marqueeLabelTop.TabIndex = 2;
214 this.marqueeLabelTop.Text = "ABCDEFGHIJKLMNOPQRST-0123456789";
215 this.marqueeLabelTop.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
216 this.marqueeLabelTop.UseCompatibleTextRendering = true;
218 // marqueeLabelBottom
220 this.marqueeLabelBottom.AutoEllipsis = true;
221 this.marqueeLabelBottom.Dock = System.Windows.Forms.DockStyle.Fill;
222 this.marqueeLabelBottom.Location = new System.Drawing.Point(1, 32);
223 this.marqueeLabelBottom.Margin = new System.Windows.Forms.Padding(0);
224 this.marqueeLabelBottom.Name = "marqueeLabelBottom";
225 this.marqueeLabelBottom.OwnTimer = false;
226 this.marqueeLabelBottom.PixelsPerSecond = 64;
227 this.marqueeLabelBottom.Separator = " | ";
228 this.marqueeLabelBottom.Size = new System.Drawing.Size(254, 31);
229 this.marqueeLabelBottom.TabIndex = 3;
230 this.marqueeLabelBottom.Text = "abcdefghijklmnopqrst-0123456789";
231 this.marqueeLabelBottom.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
232 this.marqueeLabelBottom.UseCompatibleTextRendering = true;
236 this.buttonFont.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
237 this.buttonFont.Location = new System.Drawing.Point(6, 340);
238 this.buttonFont.Name = "buttonFont";
239 this.buttonFont.Size = new System.Drawing.Size(75, 23);
240 this.buttonFont.TabIndex = 0;
241 this.buttonFont.Text = "Select Font";
242 this.buttonFont.UseVisualStyleBackColor = true;
243 this.buttonFont.Click += new System.EventHandler(this.buttonFont_Click);
247 this.tabPageTests.Location = new System.Drawing.Point(4, 22);
248 this.tabPageTests.Name = "tabPageTests";
249 this.tabPageTests.Padding = new System.Windows.Forms.Padding(3);
250 this.tabPageTests.Size = new System.Drawing.Size(592, 369);
251 this.tabPageTests.TabIndex = 1;
252 this.tabPageTests.Text = "Test";
253 this.tabPageTests.UseVisualStyleBackColor = true;
257 this.timer.Enabled = true;
258 this.timer.Interval = 50;
259 this.timer.Tick += new System.EventHandler(this.timer_Tick);
263 this.statusStrip.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
264 this.toolStripStatusLabelConnect,
265 this.toolStripStatusLabelSpring,
266 this.toolStripStatusLabelFps});
267 this.statusStrip.Location = new System.Drawing.Point(0, 420);
268 this.statusStrip.Name = "statusStrip";
269 this.statusStrip.RenderMode = System.Windows.Forms.ToolStripRenderMode.Professional;
270 this.statusStrip.Size = new System.Drawing.Size(624, 22);
271 this.statusStrip.TabIndex = 1;
272 this.statusStrip.Text = "statusStrip";
274 // toolStripStatusLabelConnect
276 this.toolStripStatusLabelConnect.Name = "toolStripStatusLabelConnect";
277 this.toolStripStatusLabelConnect.Size = new System.Drawing.Size(86, 17);
278 this.toolStripStatusLabelConnect.Text = "Not connected";
280 // toolStripStatusLabelSpring
282 this.toolStripStatusLabelSpring.Name = "toolStripStatusLabelSpring";
283 this.toolStripStatusLabelSpring.Size = new System.Drawing.Size(497, 17);
284 this.toolStripStatusLabelSpring.Spring = true;
286 // toolStripStatusLabelFps
288 this.toolStripStatusLabelFps.Name = "toolStripStatusLabelFps";
289 this.toolStripStatusLabelFps.Size = new System.Drawing.Size(26, 17);
290 this.toolStripStatusLabelFps.Text = "FPS";
294 this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
295 this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
296 this.ClientSize = new System.Drawing.Size(624, 442);
297 this.Controls.Add(this.statusStrip);
298 this.Controls.Add(this.tabControl);
299 this.MinimumSize = new System.Drawing.Size(640, 480);
300 this.Name = "MainForm";
301 this.Text = "Sharp Display Manager";
302 this.tabControl.ResumeLayout(false);
303 this.tabPageDisplay.ResumeLayout(false);
304 this.tabPageDisplay.PerformLayout();
305 ((System.ComponentModel.ISupportInitialize)(this.trackBarBrightness)).EndInit();
306 this.tableLayoutPanel.ResumeLayout(false);
307 this.statusStrip.ResumeLayout(false);
308 this.statusStrip.PerformLayout();
309 this.ResumeLayout(false);
310 this.PerformLayout();
316 private System.Windows.Forms.TabControl tabControl;
317 private System.Windows.Forms.TabPage tabPageDisplay;
318 private System.Windows.Forms.TabPage tabPageTests;
319 private System.Windows.Forms.Button buttonFont;
320 private System.Windows.Forms.FontDialog fontDialog;
321 private System.Windows.Forms.TableLayoutPanel tableLayoutPanel;
322 private MarqueeLabel marqueeLabelTop;
323 private MarqueeLabel marqueeLabelBottom;
324 private System.Windows.Forms.Button buttonCapture;
325 private System.Windows.Forms.Timer timer;
326 private System.Windows.Forms.Button buttonFill;
327 private System.Windows.Forms.Button buttonClear;
328 private System.Windows.Forms.Button buttonClose;
329 private System.Windows.Forms.Button buttonOpen;
330 private System.Windows.Forms.TrackBar trackBarBrightness;
331 private System.Windows.Forms.StatusStrip statusStrip;
332 private System.Windows.Forms.ToolStripStatusLabel toolStripStatusLabelConnect;
333 private System.Windows.Forms.ToolStripStatusLabel toolStripStatusLabelFps;
334 private System.Windows.Forms.ToolStripStatusLabel toolStripStatusLabelSpring;