Display is now updated as labels are scrolling.
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.tabControl.SuspendLayout();
48 this.tabPageDisplay.SuspendLayout();
49 ((System.ComponentModel.ISupportInitialize)(this.trackBarBrightness)).BeginInit();
50 this.tableLayoutPanel.SuspendLayout();
55 this.tabControl.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
56 | System.Windows.Forms.AnchorStyles.Left)
57 | System.Windows.Forms.AnchorStyles.Right)));
58 this.tabControl.Controls.Add(this.tabPageDisplay);
59 this.tabControl.Controls.Add(this.tabPageTests);
60 this.tabControl.Location = new System.Drawing.Point(12, 12);
61 this.tabControl.Name = "tabControl";
62 this.tabControl.SelectedIndex = 0;
63 this.tabControl.Size = new System.Drawing.Size(529, 362);
64 this.tabControl.TabIndex = 0;
68 this.tabPageDisplay.Controls.Add(this.trackBarBrightness);
69 this.tabPageDisplay.Controls.Add(this.buttonFill);
70 this.tabPageDisplay.Controls.Add(this.buttonClear);
71 this.tabPageDisplay.Controls.Add(this.buttonClose);
72 this.tabPageDisplay.Controls.Add(this.buttonOpen);
73 this.tabPageDisplay.Controls.Add(this.buttonCapture);
74 this.tabPageDisplay.Controls.Add(this.tableLayoutPanel);
75 this.tabPageDisplay.Controls.Add(this.buttonFont);
76 this.tabPageDisplay.Location = new System.Drawing.Point(4, 22);
77 this.tabPageDisplay.Name = "tabPageDisplay";
78 this.tabPageDisplay.Padding = new System.Windows.Forms.Padding(3);
79 this.tabPageDisplay.Size = new System.Drawing.Size(521, 336);
80 this.tabPageDisplay.TabIndex = 0;
81 this.tabPageDisplay.Text = "Display";
82 this.tabPageDisplay.UseVisualStyleBackColor = true;
86 this.trackBarBrightness.BackColor = System.Drawing.SystemColors.Window;
87 this.trackBarBrightness.Location = new System.Drawing.Point(470, 6);
88 this.trackBarBrightness.Name = "trackBarBrightness";
89 this.trackBarBrightness.Orientation = System.Windows.Forms.Orientation.Vertical;
90 this.trackBarBrightness.Size = new System.Drawing.Size(45, 324);
91 this.trackBarBrightness.TabIndex = 10;
92 this.trackBarBrightness.TickStyle = System.Windows.Forms.TickStyle.Both;
93 this.trackBarBrightness.Scroll += new System.EventHandler(this.trackBarBrightness_Scroll);
97 this.buttonFill.Location = new System.Drawing.Point(6, 93);
98 this.buttonFill.Name = "buttonFill";
99 this.buttonFill.Size = new System.Drawing.Size(75, 23);
100 this.buttonFill.TabIndex = 9;
101 this.buttonFill.Text = "Fill";
102 this.buttonFill.UseVisualStyleBackColor = true;
103 this.buttonFill.Click += new System.EventHandler(this.buttonFill_Click);
107 this.buttonClear.Location = new System.Drawing.Point(6, 64);
108 this.buttonClear.Name = "buttonClear";
109 this.buttonClear.Size = new System.Drawing.Size(75, 23);
110 this.buttonClear.TabIndex = 8;
111 this.buttonClear.Text = "Clear";
112 this.buttonClear.UseVisualStyleBackColor = true;
113 this.buttonClear.Click += new System.EventHandler(this.buttonClear_Click);
117 this.buttonClose.Location = new System.Drawing.Point(6, 35);
118 this.buttonClose.Name = "buttonClose";
119 this.buttonClose.Size = new System.Drawing.Size(75, 23);
120 this.buttonClose.TabIndex = 7;
121 this.buttonClose.Text = "Close";
122 this.buttonClose.UseVisualStyleBackColor = true;
123 this.buttonClose.Click += new System.EventHandler(this.buttonClose_Click);
127 this.buttonOpen.Location = new System.Drawing.Point(6, 6);
128 this.buttonOpen.Name = "buttonOpen";
129 this.buttonOpen.Size = new System.Drawing.Size(75, 23);
130 this.buttonOpen.TabIndex = 6;
131 this.buttonOpen.Text = "Open";
132 this.buttonOpen.UseVisualStyleBackColor = true;
133 this.buttonOpen.Click += new System.EventHandler(this.buttonOpen_Click);
137 this.buttonCapture.Location = new System.Drawing.Point(6, 278);
138 this.buttonCapture.Name = "buttonCapture";
139 this.buttonCapture.Size = new System.Drawing.Size(75, 23);
140 this.buttonCapture.TabIndex = 5;
141 this.buttonCapture.Text = "Capture";
142 this.buttonCapture.UseVisualStyleBackColor = true;
143 this.buttonCapture.Click += new System.EventHandler(this.buttonCapture_Click);
147 this.tableLayoutPanel.CellBorderStyle = System.Windows.Forms.TableLayoutPanelCellBorderStyle.Single;
148 this.tableLayoutPanel.ColumnCount = 1;
149 this.tableLayoutPanel.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 50F));
150 this.tableLayoutPanel.Controls.Add(this.marqueeLabelTop, 0, 0);
151 this.tableLayoutPanel.Controls.Add(this.marqueeLabelBottom, 0, 1);
152 this.tableLayoutPanel.Location = new System.Drawing.Point(180, 161);
153 this.tableLayoutPanel.Margin = new System.Windows.Forms.Padding(0);
154 this.tableLayoutPanel.Name = "tableLayoutPanel";
155 this.tableLayoutPanel.RowCount = 2;
156 this.tableLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 50F));
157 this.tableLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 50F));
158 this.tableLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 20F));
159 this.tableLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 20F));
160 this.tableLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 20F));
161 this.tableLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 20F));
162 this.tableLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 20F));
163 this.tableLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 20F));
164 this.tableLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 20F));
165 this.tableLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 20F));
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.Size = new System.Drawing.Size(256, 64);
191 this.tableLayoutPanel.TabIndex = 4;
195 this.marqueeLabelTop.AutoEllipsis = true;
196 this.marqueeLabelTop.BackColor = System.Drawing.Color.Transparent;
197 this.marqueeLabelTop.Dock = System.Windows.Forms.DockStyle.Fill;
198 this.marqueeLabelTop.Location = new System.Drawing.Point(1, 1);
199 this.marqueeLabelTop.Margin = new System.Windows.Forms.Padding(0);
200 this.marqueeLabelTop.Name = "marqueeLabelTop";
201 this.marqueeLabelTop.OwnTimer = false;
202 this.marqueeLabelTop.PixelsPerSecond = 64;
203 this.marqueeLabelTop.Size = new System.Drawing.Size(254, 30);
204 this.marqueeLabelTop.TabIndex = 2;
205 this.marqueeLabelTop.Text = "ABCDEFGHIJKLMNOPQRST-0123456789";
206 this.marqueeLabelTop.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
207 this.marqueeLabelTop.UseCompatibleTextRendering = true;
209 // marqueeLabelBottom
211 this.marqueeLabelBottom.AutoEllipsis = true;
212 this.marqueeLabelBottom.Dock = System.Windows.Forms.DockStyle.Fill;
213 this.marqueeLabelBottom.Location = new System.Drawing.Point(1, 32);
214 this.marqueeLabelBottom.Margin = new System.Windows.Forms.Padding(0);
215 this.marqueeLabelBottom.Name = "marqueeLabelBottom";
216 this.marqueeLabelBottom.OwnTimer = false;
217 this.marqueeLabelBottom.PixelsPerSecond = 64;
218 this.marqueeLabelBottom.Size = new System.Drawing.Size(254, 31);
219 this.marqueeLabelBottom.TabIndex = 3;
220 this.marqueeLabelBottom.Text = "abcdefghijklmnopqrst-0123456789";
221 this.marqueeLabelBottom.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
222 this.marqueeLabelBottom.UseCompatibleTextRendering = true;
226 this.buttonFont.Location = new System.Drawing.Point(6, 307);
227 this.buttonFont.Name = "buttonFont";
228 this.buttonFont.Size = new System.Drawing.Size(75, 23);
229 this.buttonFont.TabIndex = 0;
230 this.buttonFont.Text = "Select Font";
231 this.buttonFont.UseVisualStyleBackColor = true;
232 this.buttonFont.Click += new System.EventHandler(this.buttonFont_Click);
236 this.tabPageTests.Location = new System.Drawing.Point(4, 22);
237 this.tabPageTests.Name = "tabPageTests";
238 this.tabPageTests.Padding = new System.Windows.Forms.Padding(3);
239 this.tabPageTests.Size = new System.Drawing.Size(521, 336);
240 this.tabPageTests.TabIndex = 1;
241 this.tabPageTests.Text = "Test";
242 this.tabPageTests.UseVisualStyleBackColor = true;
246 this.timer.Enabled = true;
247 this.timer.Interval = 50;
248 this.timer.Tick += new System.EventHandler(this.timer_Tick);
252 this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
253 this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
254 this.ClientSize = new System.Drawing.Size(553, 386);
255 this.Controls.Add(this.tabControl);
256 this.Name = "MainForm";
257 this.Text = "Sharp Display Manager";
258 this.tabControl.ResumeLayout(false);
259 this.tabPageDisplay.ResumeLayout(false);
260 this.tabPageDisplay.PerformLayout();
261 ((System.ComponentModel.ISupportInitialize)(this.trackBarBrightness)).EndInit();
262 this.tableLayoutPanel.ResumeLayout(false);
263 this.ResumeLayout(false);
269 private System.Windows.Forms.TabControl tabControl;
270 private System.Windows.Forms.TabPage tabPageDisplay;
271 private System.Windows.Forms.TabPage tabPageTests;
272 private System.Windows.Forms.Button buttonFont;
273 private System.Windows.Forms.FontDialog fontDialog;
274 private System.Windows.Forms.TableLayoutPanel tableLayoutPanel;
275 private MarqueeLabel marqueeLabelTop;
276 private MarqueeLabel marqueeLabelBottom;
277 private System.Windows.Forms.Button buttonCapture;
278 private System.Windows.Forms.Timer timer;
279 private System.Windows.Forms.Button buttonFill;
280 private System.Windows.Forms.Button buttonClear;
281 private System.Windows.Forms.Button buttonClose;
282 private System.Windows.Forms.Button buttonOpen;
283 private System.Windows.Forms.TrackBar trackBarBrightness;