Hush – Diff between revs 1 and 2

Subversion Repositories:
Rev:
Show entire fileIgnore whitespace
Rev 1 Rev 2
Line 16... Line 16...
16 private void InitializeComponent() 16 private void InitializeComponent()
17 { 17 {
18 this.components = new System.ComponentModel.Container(); 18 this.components = new System.ComponentModel.Container();
19 System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Hush)); 19 System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Hush));
20 this.tableLayoutPanel1 = new System.Windows.Forms.TableLayoutPanel(); 20 this.tableLayoutPanel1 = new System.Windows.Forms.TableLayoutPanel();
21 this.LobbyTextBox = new System.Windows.Forms.TextBox(); 21 this.chatTextBox = new System.Windows.Forms.TextBox();
22 this.messageTextBox = new System.Windows.Forms.TextBox(); 22 this.messageTextBox = new System.Windows.Forms.TextBox();
23 this.notifyIcon1 = new System.Windows.Forms.NotifyIcon(this.components); 23 this.notifyIcon1 = new System.Windows.Forms.NotifyIcon(this.components);
24 this.contextMenuStrip1 = new System.Windows.Forms.ContextMenuStrip(this.components); 24 this.contextMenuStrip1 = new System.Windows.Forms.ContextMenuStrip(this.components);
25 this.startToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); 25 this.startToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
26 this.toolStripSeparator1 = new System.Windows.Forms.ToolStripSeparator(); 26 this.toolStripSeparator1 = new System.Windows.Forms.ToolStripSeparator();
Line 51... Line 51...
51 // tableLayoutPanel1 51 // tableLayoutPanel1
52 // 52 //
53 this.tableLayoutPanel1.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink; 53 this.tableLayoutPanel1.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink;
54 this.tableLayoutPanel1.ColumnCount = 1; 54 this.tableLayoutPanel1.ColumnCount = 1;
55 this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 100F)); 55 this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 100F));
56 this.tableLayoutPanel1.Controls.Add(this.LobbyTextBox, 0, 0); 56 this.tableLayoutPanel1.Controls.Add(this.chatTextBox, 0, 0);
57 this.tableLayoutPanel1.Controls.Add(this.messageTextBox, 0, 1); 57 this.tableLayoutPanel1.Controls.Add(this.messageTextBox, 0, 1);
58 this.tableLayoutPanel1.Dock = System.Windows.Forms.DockStyle.Fill; 58 this.tableLayoutPanel1.Dock = System.Windows.Forms.DockStyle.Fill;
59 this.tableLayoutPanel1.Location = new System.Drawing.Point(5, 5); 59 this.tableLayoutPanel1.Location = new System.Drawing.Point(5, 5);
60 this.tableLayoutPanel1.Name = "tableLayoutPanel1"; 60 this.tableLayoutPanel1.Name = "tableLayoutPanel1";
61 this.tableLayoutPanel1.RowCount = 2; 61 this.tableLayoutPanel1.RowCount = 2;
62 this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F)); 62 this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F));
63 this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle()); 63 this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle());
64 this.tableLayoutPanel1.Size = new System.Drawing.Size(633, 387); 64 this.tableLayoutPanel1.Size = new System.Drawing.Size(633, 387);
65 this.tableLayoutPanel1.TabIndex = 0; 65 this.tableLayoutPanel1.TabIndex = 0;
66 this.tableLayoutPanel1.MouseDown += new System.Windows.Forms.MouseEventHandler(this.OnMouseDown); 66 this.tableLayoutPanel1.MouseDown += new System.Windows.Forms.MouseEventHandler(this.OnMouseDown);
67 this.tableLayoutPanel1.MouseEnter += new System.EventHandler(this.OnMouseEnter); 67 this.tableLayoutPanel1.MouseEnter += new System.EventHandler(this.HushFocus);
68 this.tableLayoutPanel1.MouseLeave += new System.EventHandler(this.OnMouseLeave); 68 this.tableLayoutPanel1.MouseLeave += new System.EventHandler(this.HushUnfocus);
69 // 69 //
70 // LobbyTextBox 70 // chatTextBox
71 // 71 //
-   72 this.chatTextBox.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
-   73 | System.Windows.Forms.AnchorStyles.Left)
-   74 | System.Windows.Forms.AnchorStyles.Right)));
72 this.LobbyTextBox.BackColor = System.Drawing.Color.Black; 75 this.chatTextBox.BackColor = System.Drawing.Color.Black;
73 this.LobbyTextBox.BorderStyle = System.Windows.Forms.BorderStyle.None; 76 this.chatTextBox.BorderStyle = System.Windows.Forms.BorderStyle.None;
74 this.LobbyTextBox.DataBindings.Add(new System.Windows.Forms.Binding("ForeColor", global::Hush.Properties.Settings.Default, "TextColorWing", true, System.Windows.Forms.DataSourceUpdateMode.OnPropertyChanged)); 77 this.chatTextBox.DataBindings.Add(new System.Windows.Forms.Binding("ForeColor", global::Hush.Properties.Settings.Default, "TextColorWing", true, System.Windows.Forms.DataSourceUpdateMode.OnPropertyChanged));
75 this.LobbyTextBox.Dock = System.Windows.Forms.DockStyle.Fill; -  
76 this.LobbyTextBox.Font = new System.Drawing.Font("Consolas", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); 78 this.chatTextBox.Font = new System.Drawing.Font("Consolas", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
77 this.LobbyTextBox.ForeColor = global::Hush.Properties.Settings.Default.TextColorWing; 79 this.chatTextBox.ForeColor = global::Hush.Properties.Settings.Default.TextColorWing;
78 this.LobbyTextBox.Location = new System.Drawing.Point(3, 3); 80 this.chatTextBox.Location = new System.Drawing.Point(3, 3);
79 this.LobbyTextBox.Multiline = true; 81 this.chatTextBox.Multiline = true;
80 this.LobbyTextBox.Name = "LobbyTextBox"; 82 this.chatTextBox.Name = "chatTextBox";
81 this.LobbyTextBox.ReadOnly = true; 83 this.chatTextBox.ReadOnly = true;
82 this.LobbyTextBox.Size = new System.Drawing.Size(627, 345); 84 this.chatTextBox.Size = new System.Drawing.Size(627, 345);
83 this.LobbyTextBox.TabIndex = 1; 85 this.chatTextBox.TabIndex = 1;
-   86 this.chatTextBox.TextChanged += new System.EventHandler(this.ChatTextBox_TextChanged);
84 this.LobbyTextBox.MouseDown += new System.Windows.Forms.MouseEventHandler(this.OnMouseDown); 87 this.chatTextBox.MouseDown += new System.Windows.Forms.MouseEventHandler(this.OnMouseDown);
85 this.LobbyTextBox.MouseEnter += new System.EventHandler(this.OnMouseEnter); 88 this.chatTextBox.MouseEnter += new System.EventHandler(this.HushFocus);
86 this.LobbyTextBox.MouseLeave += new System.EventHandler(this.OnMouseLeave); 89 this.chatTextBox.MouseLeave += new System.EventHandler(this.HushUnfocus);
87 // 90 //
88 // messageTextBox 91 // messageTextBox
89 // 92 //
90 this.messageTextBox.BackColor = global::Hush.Properties.Settings.Default.Color; 93 this.messageTextBox.BackColor = global::Hush.Properties.Settings.Default.Color;
91 this.messageTextBox.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; 94 this.messageTextBox.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
Line 97... Line 100...
97 this.messageTextBox.Location = new System.Drawing.Point(3, 354); 100 this.messageTextBox.Location = new System.Drawing.Point(3, 354);
98 this.messageTextBox.Name = "messageTextBox"; 101 this.messageTextBox.Name = "messageTextBox";
99 this.messageTextBox.Size = new System.Drawing.Size(627, 30); 102 this.messageTextBox.Size = new System.Drawing.Size(627, 30);
100 this.messageTextBox.TabIndex = 2; 103 this.messageTextBox.TabIndex = 2;
101 this.messageTextBox.KeyDown += new System.Windows.Forms.KeyEventHandler(this.MessageTextBoxOnKeyDown); 104 this.messageTextBox.KeyDown += new System.Windows.Forms.KeyEventHandler(this.MessageTextBoxOnKeyDown);
102 this.messageTextBox.MouseEnter += new System.EventHandler(this.OnMouseEnter); 105 this.messageTextBox.MouseEnter += new System.EventHandler(this.HushFocus);
103 this.messageTextBox.MouseLeave += new System.EventHandler(this.OnMouseLeave); 106 this.messageTextBox.MouseLeave += new System.EventHandler(this.HushUnfocus);
104 // 107 //
105 // notifyIcon1 108 // notifyIcon1
106 // 109 //
107 this.notifyIcon1.ContextMenuStrip = this.contextMenuStrip1; 110 this.notifyIcon1.ContextMenuStrip = this.contextMenuStrip1;
108 this.notifyIcon1.Icon = ((System.Drawing.Icon)(resources.GetObject("notifyIcon1.Icon"))); 111 this.notifyIcon1.Icon = ((System.Drawing.Icon)(resources.GetObject("notifyIcon1.Icon")));
Line 314... Line 317...
314 this.MaximizeBox = false; 317 this.MaximizeBox = false;
315 this.MinimizeBox = false; 318 this.MinimizeBox = false;
316 this.Name = "Hush"; 319 this.Name = "Hush";
317 this.Opacity = 0.5D; 320 this.Opacity = 0.5D;
318 this.Padding = new System.Windows.Forms.Padding(5); 321 this.Padding = new System.Windows.Forms.Padding(5);
-   322 this.ShowIcon = false;
-   323 this.ShowInTaskbar = false;
319 this.Text = "Form1"; 324 this.Text = "Form1";
320 this.TopMost = true; 325 this.TopMost = true;
-   326 this.Activated += new System.EventHandler(this.HushFocus);
-   327 this.Deactivate += new System.EventHandler(this.HushUnfocus);
-   328 this.Enter += new System.EventHandler(this.HushFocus);
-   329 this.Leave += new System.EventHandler(this.HushUnfocus);
321 this.MouseDown += new System.Windows.Forms.MouseEventHandler(this.OnMouseDown); 330 this.MouseDown += new System.Windows.Forms.MouseEventHandler(this.OnMouseDown);
322 this.MouseEnter += new System.EventHandler(this.OnMouseEnter); 331 this.MouseEnter += new System.EventHandler(this.HushFocus);
323 this.MouseLeave += new System.EventHandler(this.OnMouseLeave); 332 this.MouseLeave += new System.EventHandler(this.HushUnfocus);
324 this.tableLayoutPanel1.ResumeLayout(false); 333 this.tableLayoutPanel1.ResumeLayout(false);
325 this.tableLayoutPanel1.PerformLayout(); 334 this.tableLayoutPanel1.PerformLayout();
326 this.contextMenuStrip1.ResumeLayout(false); 335 this.contextMenuStrip1.ResumeLayout(false);
327 this.ResumeLayout(false); 336 this.ResumeLayout(false);
Line 328... Line 337...
328   337  
Line 329... Line 338...
329 } 338 }
Line 330... Line 339...
330   339  
331 #endregion 340 #endregion
332   341  
333 private System.Windows.Forms.TableLayoutPanel tableLayoutPanel1; 342 private System.Windows.Forms.TableLayoutPanel tableLayoutPanel1;
334 private System.Windows.Forms.TextBox LobbyTextBox; 343 private System.Windows.Forms.TextBox chatTextBox;
335 private System.Windows.Forms.TextBox messageTextBox; 344 private System.Windows.Forms.TextBox messageTextBox;
336 private System.Windows.Forms.NotifyIcon notifyIcon1; 345 private System.Windows.Forms.NotifyIcon notifyIcon1;