Adding status bar and managing control status.
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.buttonFont = new System.Windows.Forms.Button();
42 this.tabPageTests = new System.Windows.Forms.TabPage();
43 this.fontDialog = new System.Windows.Forms.FontDialog();
44 this.timer = new System.Windows.Forms.Timer(this.components);
45 this.statusStrip = new System.Windows.Forms.StatusStrip();
46 this.toolStripStatusLabelConnect = new System.Windows.Forms.ToolStripStatusLabel();
47 this.marqueeLabelTop = new SharpDisplayManager.MarqueeLabel();
48 this.marqueeLabelBottom = new SharpDisplayManager.MarqueeLabel();
49 this.tabControl.SuspendLayout();
50 this.tabPageDisplay.SuspendLayout();
51 ((System.ComponentModel.ISupportInitialize)(this.trackBarBrightness)).BeginInit();
52 this.tableLayoutPanel.SuspendLayout();
53 this.statusStrip.SuspendLayout();
58 this.tabControl.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
59 | System.Windows.Forms.AnchorStyles.Left)
60 | System.Windows.Forms.AnchorStyles.Right)));
61 this.tabControl.Controls.Add(this.tabPageDisplay);
62 this.tabControl.Controls.Add(this.tabPageTests);
63 this.tabControl.Location = new System.Drawing.Point(12, 12);
64 this.tabControl.Name = "tabControl";
65 this.tabControl.SelectedIndex = 0;
66 this.tabControl.Size = new System.Drawing.Size(600, 395);
67 this.tabControl.TabIndex = 0;
71 this.tabPageDisplay.Controls.Add(this.trackBarBrightness);
72 this.tabPageDisplay.Controls.Add(this.buttonFill);
73 this.tabPageDisplay.Controls.Add(this.buttonClear);
74 this.tabPageDisplay.Controls.Add(this.buttonClose);
75 this.tabPageDisplay.Controls.Add(this.buttonOpen);
76 this.tabPageDisplay.Controls.Add(this.buttonCapture);
77 this.tabPageDisplay.Controls.Add(this.tableLayoutPanel);
78 this.tabPageDisplay.Controls.Add(this.buttonFont);
79 this.tabPageDisplay.Location = new System.Drawing.Point(4, 22);
80 this.tabPageDisplay.Name = "tabPageDisplay";
81 this.tabPageDisplay.Padding = new System.Windows.Forms.Padding(3);
82 this.tabPageDisplay.Size = new System.Drawing.Size(592, 369);
83 this.tabPageDisplay.TabIndex = 0;
84 this.tabPageDisplay.Text = "Display";
85 this.tabPageDisplay.UseVisualStyleBackColor = true;
89 this.trackBarBrightness.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
90 | System.Windows.Forms.AnchorStyles.Right)));
91 this.trackBarBrightness.BackColor = System.Drawing.SystemColors.Window;
92 this.trackBarBrightness.Location = new System.Drawing.Point(544, 9);
93 this.trackBarBrightness.Name = "trackBarBrightness";
94 this.trackBarBrightness.Orientation = System.Windows.Forms.Orientation.Vertical;
95 this.trackBarBrightness.Size = new System.Drawing.Size(45, 357);
96 this.trackBarBrightness.TabIndex = 10;
97 this.trackBarBrightness.TickStyle = System.Windows.Forms.TickStyle.Both;
98 this.trackBarBrightness.Scroll += new System.EventHandler(this.trackBarBrightness_Scroll);
102 this.buttonFill.Location = new System.Drawing.Point(6, 93);
103 this.buttonFill.Name = "buttonFill";
104 this.buttonFill.Size = new System.Drawing.Size(75, 23);
105 this.buttonFill.TabIndex = 9;
106 this.buttonFill.Text = "Fill";
107 this.buttonFill.UseVisualStyleBackColor = true;
108 this.buttonFill.Click += new System.EventHandler(this.buttonFill_Click);
112 this.buttonClear.Location = new System.Drawing.Point(6, 64);
113 this.buttonClear.Name = "buttonClear";
114 this.buttonClear.Size = new System.Drawing.Size(75, 23);
115 this.buttonClear.TabIndex = 8;
116 this.buttonClear.Text = "Clear";
117 this.buttonClear.UseVisualStyleBackColor = true;
118 this.buttonClear.Click += new System.EventHandler(this.buttonClear_Click);
122 this.buttonClose.Location = new System.Drawing.Point(6, 35);
123 this.buttonClose.Name = "buttonClose";
124 this.buttonClose.Size = new System.Drawing.Size(75, 23);
125 this.buttonClose.TabIndex = 7;
126 this.buttonClose.Text = "Close";
127 this.buttonClose.UseVisualStyleBackColor = true;
128 this.buttonClose.Click += new System.EventHandler(this.buttonClose_Click);
132 this.buttonOpen.Location = new System.Drawing.Point(6, 6);
133 this.buttonOpen.Name = "buttonOpen";
134 this.buttonOpen.Size = new System.Drawing.Size(75, 23);
135 this.buttonOpen.TabIndex = 6;
136 this.buttonOpen.Text = "Open";
137 this.buttonOpen.UseVisualStyleBackColor = true;
138 this.buttonOpen.Click += new System.EventHandler(this.buttonOpen_Click);
142 this.buttonCapture.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
143 this.buttonCapture.Location = new System.Drawing.Point(6, 311);
144 this.buttonCapture.Name = "buttonCapture";
145 this.buttonCapture.Size = new System.Drawing.Size(75, 23);
146 this.buttonCapture.TabIndex = 5;
147 this.buttonCapture.Text = "Capture";
148 this.buttonCapture.UseVisualStyleBackColor = true;
149 this.buttonCapture.Click += new System.EventHandler(this.buttonCapture_Click);
153 this.tableLayoutPanel.CellBorderStyle = System.Windows.Forms.TableLayoutPanelCellBorderStyle.Single;
154 this.tableLayoutPanel.ColumnCount = 1;
155 this.tableLayoutPanel.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 50F));
156 this.tableLayoutPanel.Controls.Add(this.marqueeLabelTop, 0, 0);
157 this.tableLayoutPanel.Controls.Add(this.marqueeLabelBottom, 0, 1);
158 this.tableLayoutPanel.Location = new System.Drawing.Point(180, 161);
159 this.tableLayoutPanel.Margin = new System.Windows.Forms.Padding(0);
160 this.tableLayoutPanel.Name = "tableLayoutPanel";
161 this.tableLayoutPanel.RowCount = 2;
162 this.tableLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 50F));
163 this.tableLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 50F));
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.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.Size = new System.Drawing.Size(256, 64);
197 this.tableLayoutPanel.TabIndex = 4;
201 this.buttonFont.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
202 this.buttonFont.Location = new System.Drawing.Point(6, 340);
203 this.buttonFont.Name = "buttonFont";
204 this.buttonFont.Size = new System.Drawing.Size(75, 23);
205 this.buttonFont.TabIndex = 0;
206 this.buttonFont.Text = "Select Font";
207 this.buttonFont.UseVisualStyleBackColor = true;
208 this.buttonFont.Click += new System.EventHandler(this.buttonFont_Click);
212 this.tabPageTests.Location = new System.Drawing.Point(4, 22);
213 this.tabPageTests.Name = "tabPageTests";
214 this.tabPageTests.Padding = new System.Windows.Forms.Padding(3);
215 this.tabPageTests.Size = new System.Drawing.Size(592, 369);
216 this.tabPageTests.TabIndex = 1;
217 this.tabPageTests.Text = "Test";
218 this.tabPageTests.UseVisualStyleBackColor = true;
222 this.timer.Enabled = true;
223 this.timer.Interval = 50;
224 this.timer.Tick += new System.EventHandler(this.timer_Tick);
228 this.statusStrip.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
229 this.toolStripStatusLabelConnect});
230 this.statusStrip.Location = new System.Drawing.Point(0, 420);
231 this.statusStrip.Name = "statusStrip";
232 this.statusStrip.Size = new System.Drawing.Size(624, 22);
233 this.statusStrip.TabIndex = 1;
234 this.statusStrip.Text = "statusStrip";
236 // toolStripStatusLabelConnect
238 this.toolStripStatusLabelConnect.Name = "toolStripStatusLabelConnect";
239 this.toolStripStatusLabelConnect.Size = new System.Drawing.Size(86, 17);
240 this.toolStripStatusLabelConnect.Text = "Not connected";
244 this.marqueeLabelTop.AutoEllipsis = true;
245 this.marqueeLabelTop.BackColor = System.Drawing.Color.Transparent;
246 this.marqueeLabelTop.Dock = System.Windows.Forms.DockStyle.Fill;
247 this.marqueeLabelTop.Location = new System.Drawing.Point(1, -103);
248 this.marqueeLabelTop.Margin = new System.Windows.Forms.Padding(0);
249 this.marqueeLabelTop.Name = "marqueeLabelTop";
250 this.marqueeLabelTop.OwnTimer = false;
251 this.marqueeLabelTop.PixelsPerSecond = 64;
252 this.marqueeLabelTop.Size = new System.Drawing.Size(254, 20);
253 this.marqueeLabelTop.TabIndex = 2;
254 this.marqueeLabelTop.Text = "ABCDEFGHIJKLMNOPQRST-0123456789";
255 this.marqueeLabelTop.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
256 this.marqueeLabelTop.UseCompatibleTextRendering = true;
258 // marqueeLabelBottom
260 this.marqueeLabelBottom.AutoEllipsis = true;
261 this.marqueeLabelBottom.Dock = System.Windows.Forms.DockStyle.Fill;
262 this.marqueeLabelBottom.Location = new System.Drawing.Point(1, -19);
263 this.marqueeLabelBottom.Margin = new System.Windows.Forms.Padding(0);
264 this.marqueeLabelBottom.Name = "marqueeLabelBottom";
265 this.marqueeLabelBottom.OwnTimer = false;
266 this.marqueeLabelBottom.PixelsPerSecond = 64;
267 this.marqueeLabelBottom.Size = new System.Drawing.Size(254, 20);
268 this.marqueeLabelBottom.TabIndex = 3;
269 this.marqueeLabelBottom.Text = "abcdefghijklmnopqrst-0123456789";
270 this.marqueeLabelBottom.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
271 this.marqueeLabelBottom.UseCompatibleTextRendering = true;
275 this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
276 this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
277 this.ClientSize = new System.Drawing.Size(624, 442);
278 this.Controls.Add(this.statusStrip);
279 this.Controls.Add(this.tabControl);
280 this.MinimumSize = new System.Drawing.Size(640, 480);
281 this.Name = "MainForm";
282 this.Text = "Sharp Display Manager";
283 this.tabControl.ResumeLayout(false);
284 this.tabPageDisplay.ResumeLayout(false);
285 this.tabPageDisplay.PerformLayout();
286 ((System.ComponentModel.ISupportInitialize)(this.trackBarBrightness)).EndInit();
287 this.tableLayoutPanel.ResumeLayout(false);
288 this.statusStrip.ResumeLayout(false);
289 this.statusStrip.PerformLayout();
290 this.ResumeLayout(false);
291 this.PerformLayout();
297 private System.Windows.Forms.TabControl tabControl;
298 private System.Windows.Forms.TabPage tabPageDisplay;
299 private System.Windows.Forms.TabPage tabPageTests;
300 private System.Windows.Forms.Button buttonFont;
301 private System.Windows.Forms.FontDialog fontDialog;
302 private System.Windows.Forms.TableLayoutPanel tableLayoutPanel;
303 private MarqueeLabel marqueeLabelTop;
304 private MarqueeLabel marqueeLabelBottom;
305 private System.Windows.Forms.Button buttonCapture;
306 private System.Windows.Forms.Timer timer;
307 private System.Windows.Forms.Button buttonFill;
308 private System.Windows.Forms.Button buttonClear;
309 private System.Windows.Forms.Button buttonClose;
310 private System.Windows.Forms.Button buttonOpen;
311 private System.Windows.Forms.TrackBar trackBarBrightness;
312 private System.Windows.Forms.StatusStrip statusStrip;
313 private System.Windows.Forms.ToolStripStatusLabel toolStripStatusLabelConnect;