Adding basic display functions: open, close, clear, fill, brightness control.
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.buttonCapture = new System.Windows.Forms.Button();
35 this.tableLayoutPanel = new System.Windows.Forms.TableLayoutPanel();
36 this.buttonFont = new System.Windows.Forms.Button();
37 this.tabPageTests = new System.Windows.Forms.TabPage();
38 this.fontDialog = new System.Windows.Forms.FontDialog();
39 this.timer = new System.Windows.Forms.Timer(this.components);
40 this.buttonOpen = new System.Windows.Forms.Button();
41 this.buttonClose = new System.Windows.Forms.Button();
42 this.buttonClear = new System.Windows.Forms.Button();
43 this.buttonFill = new System.Windows.Forms.Button();
44 this.trackBarBrightness = new System.Windows.Forms.TrackBar();
45 this.marqueeLabelTop = new SharpDisplayManager.MarqueeLabel();
46 this.marqueeLabelBottom = new SharpDisplayManager.MarqueeLabel();
47 this.tabControl.SuspendLayout();
48 this.tabPageDisplay.SuspendLayout();
49 this.tableLayoutPanel.SuspendLayout();
50 ((System.ComponentModel.ISupportInitialize)(this.trackBarBrightness)).BeginInit();
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.buttonCapture.Location = new System.Drawing.Point(6, 278);
87 this.buttonCapture.Name = "buttonCapture";
88 this.buttonCapture.Size = new System.Drawing.Size(75, 23);
89 this.buttonCapture.TabIndex = 5;
90 this.buttonCapture.Text = "Capture";
91 this.buttonCapture.UseVisualStyleBackColor = true;
92 this.buttonCapture.Click += new System.EventHandler(this.buttonCapture_Click);
96 this.tableLayoutPanel.CellBorderStyle = System.Windows.Forms.TableLayoutPanelCellBorderStyle.Single;
97 this.tableLayoutPanel.ColumnCount = 1;
98 this.tableLayoutPanel.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 50F));
99 this.tableLayoutPanel.Controls.Add(this.marqueeLabelTop, 0, 0);
100 this.tableLayoutPanel.Controls.Add(this.marqueeLabelBottom, 0, 1);
101 this.tableLayoutPanel.Location = new System.Drawing.Point(180, 161);
102 this.tableLayoutPanel.Margin = new System.Windows.Forms.Padding(0);
103 this.tableLayoutPanel.Name = "tableLayoutPanel";
104 this.tableLayoutPanel.RowCount = 2;
105 this.tableLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 50F));
106 this.tableLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 50F));
107 this.tableLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 20F));
108 this.tableLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 20F));
109 this.tableLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 20F));
110 this.tableLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 20F));
111 this.tableLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 20F));
112 this.tableLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 20F));
113 this.tableLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 20F));
114 this.tableLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 20F));
115 this.tableLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 20F));
116 this.tableLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 20F));
117 this.tableLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 20F));
118 this.tableLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 20F));
119 this.tableLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 20F));
120 this.tableLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 20F));
121 this.tableLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 20F));
122 this.tableLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 20F));
123 this.tableLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 20F));
124 this.tableLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 20F));
125 this.tableLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 20F));
126 this.tableLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 20F));
127 this.tableLayoutPanel.Size = new System.Drawing.Size(256, 64);
128 this.tableLayoutPanel.TabIndex = 4;
132 this.buttonFont.Location = new System.Drawing.Point(6, 307);
133 this.buttonFont.Name = "buttonFont";
134 this.buttonFont.Size = new System.Drawing.Size(75, 23);
135 this.buttonFont.TabIndex = 0;
136 this.buttonFont.Text = "Select Font";
137 this.buttonFont.UseVisualStyleBackColor = true;
138 this.buttonFont.Click += new System.EventHandler(this.buttonFont_Click);
142 this.tabPageTests.Location = new System.Drawing.Point(4, 22);
143 this.tabPageTests.Name = "tabPageTests";
144 this.tabPageTests.Padding = new System.Windows.Forms.Padding(3);
145 this.tabPageTests.Size = new System.Drawing.Size(521, 336);
146 this.tabPageTests.TabIndex = 1;
147 this.tabPageTests.Text = "Test";
148 this.tabPageTests.UseVisualStyleBackColor = true;
152 this.timer.Enabled = true;
153 this.timer.Interval = 50;
154 this.timer.Tick += new System.EventHandler(this.timer_Tick);
158 this.buttonOpen.Location = new System.Drawing.Point(6, 6);
159 this.buttonOpen.Name = "buttonOpen";
160 this.buttonOpen.Size = new System.Drawing.Size(75, 23);
161 this.buttonOpen.TabIndex = 6;
162 this.buttonOpen.Text = "Open";
163 this.buttonOpen.UseVisualStyleBackColor = true;
164 this.buttonOpen.Click += new System.EventHandler(this.buttonOpen_Click);
168 this.buttonClose.Location = new System.Drawing.Point(6, 35);
169 this.buttonClose.Name = "buttonClose";
170 this.buttonClose.Size = new System.Drawing.Size(75, 23);
171 this.buttonClose.TabIndex = 7;
172 this.buttonClose.Text = "Close";
173 this.buttonClose.UseVisualStyleBackColor = true;
174 this.buttonClose.Click += new System.EventHandler(this.buttonClose_Click);
178 this.buttonClear.Location = new System.Drawing.Point(6, 64);
179 this.buttonClear.Name = "buttonClear";
180 this.buttonClear.Size = new System.Drawing.Size(75, 23);
181 this.buttonClear.TabIndex = 8;
182 this.buttonClear.Text = "Clear";
183 this.buttonClear.UseVisualStyleBackColor = true;
184 this.buttonClear.Click += new System.EventHandler(this.buttonClear_Click);
188 this.buttonFill.Location = new System.Drawing.Point(6, 93);
189 this.buttonFill.Name = "buttonFill";
190 this.buttonFill.Size = new System.Drawing.Size(75, 23);
191 this.buttonFill.TabIndex = 9;
192 this.buttonFill.Text = "Fill";
193 this.buttonFill.UseVisualStyleBackColor = true;
194 this.buttonFill.Click += new System.EventHandler(this.buttonFill_Click);
196 // trackBarBrightness
198 this.trackBarBrightness.BackColor = System.Drawing.SystemColors.Window;
199 this.trackBarBrightness.Location = new System.Drawing.Point(470, 6);
200 this.trackBarBrightness.Name = "trackBarBrightness";
201 this.trackBarBrightness.Orientation = System.Windows.Forms.Orientation.Vertical;
202 this.trackBarBrightness.Size = new System.Drawing.Size(45, 324);
203 this.trackBarBrightness.TabIndex = 10;
204 this.trackBarBrightness.TickStyle = System.Windows.Forms.TickStyle.Both;
205 this.trackBarBrightness.Scroll += new System.EventHandler(this.trackBarBrightness_Scroll);
209 this.marqueeLabelTop.BackColor = System.Drawing.Color.Transparent;
210 this.marqueeLabelTop.Dock = System.Windows.Forms.DockStyle.Fill;
211 this.marqueeLabelTop.Location = new System.Drawing.Point(1, -313);
212 this.marqueeLabelTop.Margin = new System.Windows.Forms.Padding(0);
213 this.marqueeLabelTop.Name = "marqueeLabelTop";
214 this.marqueeLabelTop.OwnTimer = false;
215 this.marqueeLabelTop.PixelsPerSecond = 64;
216 this.marqueeLabelTop.Size = new System.Drawing.Size(254, 20);
217 this.marqueeLabelTop.TabIndex = 2;
218 this.marqueeLabelTop.Text = "ABCDEFGHIJKLMNOPQRST-0123456789";
219 this.marqueeLabelTop.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
220 this.marqueeLabelTop.UseCompatibleTextRendering = true;
222 // marqueeLabelBottom
224 this.marqueeLabelBottom.Dock = System.Windows.Forms.DockStyle.Fill;
225 this.marqueeLabelBottom.Location = new System.Drawing.Point(1, -166);
226 this.marqueeLabelBottom.Margin = new System.Windows.Forms.Padding(0);
227 this.marqueeLabelBottom.Name = "marqueeLabelBottom";
228 this.marqueeLabelBottom.OwnTimer = false;
229 this.marqueeLabelBottom.PixelsPerSecond = 64;
230 this.marqueeLabelBottom.Size = new System.Drawing.Size(254, 20);
231 this.marqueeLabelBottom.TabIndex = 3;
232 this.marqueeLabelBottom.Text = "abcdefghijklmnopqrst-0123456789";
233 this.marqueeLabelBottom.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
234 this.marqueeLabelBottom.UseCompatibleTextRendering = true;
238 this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
239 this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
240 this.ClientSize = new System.Drawing.Size(553, 386);
241 this.Controls.Add(this.tabControl);
242 this.Name = "MainForm";
243 this.Text = "Sharp Display Manager";
244 this.tabControl.ResumeLayout(false);
245 this.tabPageDisplay.ResumeLayout(false);
246 this.tabPageDisplay.PerformLayout();
247 this.tableLayoutPanel.ResumeLayout(false);
248 ((System.ComponentModel.ISupportInitialize)(this.trackBarBrightness)).EndInit();
249 this.ResumeLayout(false);
255 private System.Windows.Forms.TabControl tabControl;
256 private System.Windows.Forms.TabPage tabPageDisplay;
257 private System.Windows.Forms.TabPage tabPageTests;
258 private System.Windows.Forms.Button buttonFont;
259 private System.Windows.Forms.FontDialog fontDialog;
260 private System.Windows.Forms.TableLayoutPanel tableLayoutPanel;
261 private MarqueeLabel marqueeLabelTop;
262 private MarqueeLabel marqueeLabelBottom;
263 private System.Windows.Forms.Button buttonCapture;
264 private System.Windows.Forms.Timer timer;
265 private System.Windows.Forms.Button buttonFill;
266 private System.Windows.Forms.Button buttonClear;
267 private System.Windows.Forms.Button buttonClose;
268 private System.Windows.Forms.Button buttonOpen;
269 private System.Windows.Forms.TrackBar trackBarBrightness;