From: <an...@us...> - 2007-02-02 12:52:44
|
Revision: 80 http://mp-plugins.svn.sourceforge.net/mp-plugins/?rev=80&view=rev Author: and-81 Date: 2007-02-02 04:52:42 -0800 (Fri, 02 Feb 2007) Log Message: ----------- Modified Paths: -------------- trunk/plugins/MCEReplacement/Forms/KeysCommand.Designer.cs trunk/plugins/MCEReplacement/Forms/MessageCommand.Designer.cs trunk/plugins/MCEReplacement/Forms/MessageCommand.cs trunk/plugins/TV3ExtChannelChanger/Forms/KeysCommand.Designer.cs trunk/plugins/TV3ExtChannelChanger/Forms/MessageCommand.Designer.cs trunk/plugins/TV3ExtChannelChanger/Forms/MessageCommand.cs trunk/plugins/TV3MceBlaster/Forms/KeysCommand.Designer.cs trunk/plugins/TV3MceBlaster/Forms/MessageCommand.Designer.cs trunk/plugins/TV3MceBlaster/Forms/MessageCommand.cs Modified: trunk/plugins/MCEReplacement/Forms/KeysCommand.Designer.cs =================================================================== --- trunk/plugins/MCEReplacement/Forms/KeysCommand.Designer.cs 2007-02-02 07:47:21 UTC (rev 79) +++ trunk/plugins/MCEReplacement/Forms/KeysCommand.Designer.cs 2007-02-02 12:52:42 UTC (rev 80) @@ -43,7 +43,7 @@ this.buttonCancel.Location = new System.Drawing.Point(264, 128); this.buttonCancel.Name = "buttonCancel"; this.buttonCancel.Size = new System.Drawing.Size(64, 24); - this.buttonCancel.TabIndex = 14; + this.buttonCancel.TabIndex = 3; this.buttonCancel.Text = "Cancel"; this.buttonCancel.UseVisualStyleBackColor = true; this.buttonCancel.Click += new System.EventHandler(this.buttonCancel_Click); @@ -54,7 +54,7 @@ this.buttonOK.Location = new System.Drawing.Point(192, 128); this.buttonOK.Name = "buttonOK"; this.buttonOK.Size = new System.Drawing.Size(64, 24); - this.buttonOK.TabIndex = 13; + this.buttonOK.TabIndex = 2; this.buttonOK.Text = "OK"; this.buttonOK.UseVisualStyleBackColor = true; this.buttonOK.Click += new System.EventHandler(this.buttonOK_Click); @@ -69,7 +69,7 @@ this.textBoxKeystrokes.Name = "textBoxKeystrokes"; this.textBoxKeystrokes.ScrollBars = System.Windows.Forms.ScrollBars.Vertical; this.textBoxKeystrokes.Size = new System.Drawing.Size(320, 96); - this.textBoxKeystrokes.TabIndex = 12; + this.textBoxKeystrokes.TabIndex = 1; // // labelKeystrokes // @@ -78,19 +78,22 @@ this.labelKeystrokes.Location = new System.Drawing.Point(8, 8); this.labelKeystrokes.Name = "labelKeystrokes"; this.labelKeystrokes.Size = new System.Drawing.Size(320, 16); - this.labelKeystrokes.TabIndex = 15; + this.labelKeystrokes.TabIndex = 0; this.labelKeystrokes.Text = "Keystrokes:"; // // KeysCommand // + this.AcceptButton = this.buttonOK; this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.ClientSize = new System.Drawing.Size(336, 160); + this.CancelButton = this.buttonCancel; + this.ClientSize = new System.Drawing.Size(336, 161); this.Controls.Add(this.labelKeystrokes); this.Controls.Add(this.buttonCancel); this.Controls.Add(this.buttonOK); this.Controls.Add(this.textBoxKeystrokes); this.MinimizeBox = false; + this.MinimumSize = new System.Drawing.Size(344, 188); this.Name = "KeysCommand"; this.ShowIcon = false; this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent; Modified: trunk/plugins/MCEReplacement/Forms/MessageCommand.Designer.cs =================================================================== --- trunk/plugins/MCEReplacement/Forms/MessageCommand.Designer.cs 2007-02-02 07:47:21 UTC (rev 79) +++ trunk/plugins/MCEReplacement/Forms/MessageCommand.Designer.cs 2007-02-02 12:52:42 UTC (rev 80) @@ -38,14 +38,14 @@ this.numericUpDownLParam = new System.Windows.Forms.NumericUpDown(); this.numericUpDownWParam = new System.Windows.Forms.NumericUpDown(); this.numericUpDownMsg = new System.Windows.Forms.NumericUpDown(); + this.contextMenuStripWM = new System.Windows.Forms.ContextMenuStrip(this.components); + this.wMAPPToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.wMUSERToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.labelLParam = new System.Windows.Forms.Label(); this.labelWParam = new System.Windows.Forms.Label(); this.labelMessage = new System.Windows.Forms.Label(); this.buttonCancel = new System.Windows.Forms.Button(); this.buttonOK = new System.Windows.Forms.Button(); - this.contextMenuStripWM = new System.Windows.Forms.ContextMenuStrip(this.components); - this.wMAPPToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); - this.wMUSERToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); ((System.ComponentModel.ISupportInitialize)(this.numericUpDownLParam)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.numericUpDownWParam)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.numericUpDownMsg)).BeginInit(); @@ -60,6 +60,7 @@ this.checkBoxMsgCurrApp.TabIndex = 3; this.checkBoxMsgCurrApp.Text = "Send to active window"; this.checkBoxMsgCurrApp.UseVisualStyleBackColor = true; + this.checkBoxMsgCurrApp.CheckedChanged += new System.EventHandler(this.checkBoxMsgCurrApp_CheckedChanged); // // labelMsgApp // @@ -133,6 +134,28 @@ this.numericUpDownMsg.TextAlign = System.Windows.Forms.HorizontalAlignment.Center; this.numericUpDownMsg.ThousandsSeparator = true; // + // contextMenuStripWM + // + this.contextMenuStripWM.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { + this.wMAPPToolStripMenuItem, + this.wMUSERToolStripMenuItem}); + this.contextMenuStripWM.Name = "contextMenuStripWM"; + this.contextMenuStripWM.Size = new System.Drawing.Size(136, 48); + // + // wMAPPToolStripMenuItem + // + this.wMAPPToolStripMenuItem.Name = "wMAPPToolStripMenuItem"; + this.wMAPPToolStripMenuItem.Size = new System.Drawing.Size(135, 22); + this.wMAPPToolStripMenuItem.Text = "WM_APP"; + this.wMAPPToolStripMenuItem.Click += new System.EventHandler(this.wMAPPToolStripMenuItem_Click); + // + // wMUSERToolStripMenuItem + // + this.wMUSERToolStripMenuItem.Name = "wMUSERToolStripMenuItem"; + this.wMUSERToolStripMenuItem.Size = new System.Drawing.Size(135, 22); + this.wMUSERToolStripMenuItem.Text = "WM_USER"; + this.wMUSERToolStripMenuItem.Click += new System.EventHandler(this.wMUSERToolStripMenuItem_Click); + // // labelLParam // this.labelLParam.Location = new System.Drawing.Point(8, 128); @@ -183,38 +206,16 @@ this.buttonOK.UseVisualStyleBackColor = true; this.buttonOK.Click += new System.EventHandler(this.buttonOK_Click); // - // contextMenuStripWM - // - this.contextMenuStripWM.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { - this.wMAPPToolStripMenuItem, - this.wMUSERToolStripMenuItem}); - this.contextMenuStripWM.Name = "contextMenuStripWM"; - this.contextMenuStripWM.Size = new System.Drawing.Size(136, 48); - // - // wMAPPToolStripMenuItem - // - this.wMAPPToolStripMenuItem.Name = "wMAPPToolStripMenuItem"; - this.wMAPPToolStripMenuItem.Size = new System.Drawing.Size(152, 22); - this.wMAPPToolStripMenuItem.Text = "WM_APP"; - this.wMAPPToolStripMenuItem.Click += new System.EventHandler(this.wMAPPToolStripMenuItem_Click); - // - // wMUSERToolStripMenuItem - // - this.wMUSERToolStripMenuItem.Name = "wMUSERToolStripMenuItem"; - this.wMUSERToolStripMenuItem.Size = new System.Drawing.Size(152, 22); - this.wMUSERToolStripMenuItem.Text = "WM_USER"; - this.wMUSERToolStripMenuItem.Click += new System.EventHandler(this.wMUSERToolStripMenuItem_Click); - // // MessageCommand // this.AcceptButton = this.buttonOK; this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.CancelButton = this.buttonCancel; - this.ClientSize = new System.Drawing.Size(384, 184); + this.ClientSize = new System.Drawing.Size(384, 185); + this.Controls.Add(this.checkBoxMsgCurrApp); this.Controls.Add(this.buttonCancel); this.Controls.Add(this.buttonOK); - this.Controls.Add(this.checkBoxMsgCurrApp); this.Controls.Add(this.labelMsgApp); this.Controls.Add(this.buttonFindMsgApp); this.Controls.Add(this.textBoxMsgApp); @@ -225,6 +226,7 @@ this.Controls.Add(this.labelWParam); this.Controls.Add(this.labelMessage); this.MinimizeBox = false; + this.MinimumSize = new System.Drawing.Size(392, 212); this.Name = "MessageCommand"; this.ShowIcon = false; this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent; Modified: trunk/plugins/MCEReplacement/Forms/MessageCommand.cs =================================================================== --- trunk/plugins/MCEReplacement/Forms/MessageCommand.cs 2007-02-02 07:47:21 UTC (rev 79) +++ trunk/plugins/MCEReplacement/Forms/MessageCommand.cs 2007-02-02 12:52:42 UTC (rev 80) @@ -90,6 +90,12 @@ numericUpDownMsg.Value = new decimal(Win32.WM_USER); } + private void checkBoxMsgCurrApp_CheckedChanged(object sender, EventArgs e) + { + textBoxMsgApp.Enabled = !checkBoxMsgCurrApp.Checked; + buttonFindMsgApp.Enabled = !checkBoxMsgCurrApp.Checked; + } + } } Modified: trunk/plugins/TV3ExtChannelChanger/Forms/KeysCommand.Designer.cs =================================================================== --- trunk/plugins/TV3ExtChannelChanger/Forms/KeysCommand.Designer.cs 2007-02-02 07:47:21 UTC (rev 79) +++ trunk/plugins/TV3ExtChannelChanger/Forms/KeysCommand.Designer.cs 2007-02-02 12:52:42 UTC (rev 80) @@ -43,7 +43,7 @@ this.buttonCancel.Location = new System.Drawing.Point(264, 128); this.buttonCancel.Name = "buttonCancel"; this.buttonCancel.Size = new System.Drawing.Size(64, 24); - this.buttonCancel.TabIndex = 14; + this.buttonCancel.TabIndex = 3; this.buttonCancel.Text = "Cancel"; this.buttonCancel.UseVisualStyleBackColor = true; this.buttonCancel.Click += new System.EventHandler(this.buttonCancel_Click); @@ -54,7 +54,7 @@ this.buttonOK.Location = new System.Drawing.Point(192, 128); this.buttonOK.Name = "buttonOK"; this.buttonOK.Size = new System.Drawing.Size(64, 24); - this.buttonOK.TabIndex = 13; + this.buttonOK.TabIndex = 2; this.buttonOK.Text = "OK"; this.buttonOK.UseVisualStyleBackColor = true; this.buttonOK.Click += new System.EventHandler(this.buttonOK_Click); @@ -69,7 +69,7 @@ this.textBoxKeystrokes.Name = "textBoxKeystrokes"; this.textBoxKeystrokes.ScrollBars = System.Windows.Forms.ScrollBars.Vertical; this.textBoxKeystrokes.Size = new System.Drawing.Size(320, 96); - this.textBoxKeystrokes.TabIndex = 12; + this.textBoxKeystrokes.TabIndex = 1; // // labelKeystrokes // @@ -78,19 +78,22 @@ this.labelKeystrokes.Location = new System.Drawing.Point(8, 8); this.labelKeystrokes.Name = "labelKeystrokes"; this.labelKeystrokes.Size = new System.Drawing.Size(320, 16); - this.labelKeystrokes.TabIndex = 15; + this.labelKeystrokes.TabIndex = 0; this.labelKeystrokes.Text = "Keystrokes:"; // // KeysCommand // + this.AcceptButton = this.buttonOK; this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.ClientSize = new System.Drawing.Size(336, 160); + this.CancelButton = this.buttonCancel; + this.ClientSize = new System.Drawing.Size(336, 161); this.Controls.Add(this.labelKeystrokes); this.Controls.Add(this.buttonCancel); this.Controls.Add(this.buttonOK); this.Controls.Add(this.textBoxKeystrokes); this.MinimizeBox = false; + this.MinimumSize = new System.Drawing.Size(344, 188); this.Name = "KeysCommand"; this.ShowIcon = false; this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent; Modified: trunk/plugins/TV3ExtChannelChanger/Forms/MessageCommand.Designer.cs =================================================================== --- trunk/plugins/TV3ExtChannelChanger/Forms/MessageCommand.Designer.cs 2007-02-02 07:47:21 UTC (rev 79) +++ trunk/plugins/TV3ExtChannelChanger/Forms/MessageCommand.Designer.cs 2007-02-02 12:52:42 UTC (rev 80) @@ -38,14 +38,14 @@ this.numericUpDownLParam = new System.Windows.Forms.NumericUpDown(); this.numericUpDownWParam = new System.Windows.Forms.NumericUpDown(); this.numericUpDownMsg = new System.Windows.Forms.NumericUpDown(); + this.contextMenuStripWM = new System.Windows.Forms.ContextMenuStrip(this.components); + this.wMAPPToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.wMUSERToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.labelLParam = new System.Windows.Forms.Label(); this.labelWParam = new System.Windows.Forms.Label(); this.labelMessage = new System.Windows.Forms.Label(); this.buttonCancel = new System.Windows.Forms.Button(); this.buttonOK = new System.Windows.Forms.Button(); - this.contextMenuStripWM = new System.Windows.Forms.ContextMenuStrip(this.components); - this.wMAPPToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); - this.wMUSERToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); ((System.ComponentModel.ISupportInitialize)(this.numericUpDownLParam)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.numericUpDownWParam)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.numericUpDownMsg)).BeginInit(); @@ -60,6 +60,7 @@ this.checkBoxMsgCurrApp.TabIndex = 3; this.checkBoxMsgCurrApp.Text = "Send to active window"; this.checkBoxMsgCurrApp.UseVisualStyleBackColor = true; + this.checkBoxMsgCurrApp.CheckedChanged += new System.EventHandler(this.checkBoxMsgCurrApp_CheckedChanged); // // labelMsgApp // @@ -133,6 +134,28 @@ this.numericUpDownMsg.TextAlign = System.Windows.Forms.HorizontalAlignment.Center; this.numericUpDownMsg.ThousandsSeparator = true; // + // contextMenuStripWM + // + this.contextMenuStripWM.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { + this.wMAPPToolStripMenuItem, + this.wMUSERToolStripMenuItem}); + this.contextMenuStripWM.Name = "contextMenuStripWM"; + this.contextMenuStripWM.Size = new System.Drawing.Size(136, 48); + // + // wMAPPToolStripMenuItem + // + this.wMAPPToolStripMenuItem.Name = "wMAPPToolStripMenuItem"; + this.wMAPPToolStripMenuItem.Size = new System.Drawing.Size(135, 22); + this.wMAPPToolStripMenuItem.Text = "WM_APP"; + this.wMAPPToolStripMenuItem.Click += new System.EventHandler(this.wMAPPToolStripMenuItem_Click); + // + // wMUSERToolStripMenuItem + // + this.wMUSERToolStripMenuItem.Name = "wMUSERToolStripMenuItem"; + this.wMUSERToolStripMenuItem.Size = new System.Drawing.Size(135, 22); + this.wMUSERToolStripMenuItem.Text = "WM_USER"; + this.wMUSERToolStripMenuItem.Click += new System.EventHandler(this.wMUSERToolStripMenuItem_Click); + // // labelLParam // this.labelLParam.Location = new System.Drawing.Point(8, 128); @@ -183,38 +206,16 @@ this.buttonOK.UseVisualStyleBackColor = true; this.buttonOK.Click += new System.EventHandler(this.buttonOK_Click); // - // contextMenuStripWM - // - this.contextMenuStripWM.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { - this.wMAPPToolStripMenuItem, - this.wMUSERToolStripMenuItem}); - this.contextMenuStripWM.Name = "contextMenuStripWM"; - this.contextMenuStripWM.Size = new System.Drawing.Size(136, 48); - // - // wMAPPToolStripMenuItem - // - this.wMAPPToolStripMenuItem.Name = "wMAPPToolStripMenuItem"; - this.wMAPPToolStripMenuItem.Size = new System.Drawing.Size(152, 22); - this.wMAPPToolStripMenuItem.Text = "WM_APP"; - this.wMAPPToolStripMenuItem.Click += new System.EventHandler(this.wMAPPToolStripMenuItem_Click); - // - // wMUSERToolStripMenuItem - // - this.wMUSERToolStripMenuItem.Name = "wMUSERToolStripMenuItem"; - this.wMUSERToolStripMenuItem.Size = new System.Drawing.Size(152, 22); - this.wMUSERToolStripMenuItem.Text = "WM_USER"; - this.wMUSERToolStripMenuItem.Click += new System.EventHandler(this.wMUSERToolStripMenuItem_Click); - // // MessageCommand // this.AcceptButton = this.buttonOK; this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.CancelButton = this.buttonCancel; - this.ClientSize = new System.Drawing.Size(384, 184); + this.ClientSize = new System.Drawing.Size(384, 185); + this.Controls.Add(this.checkBoxMsgCurrApp); this.Controls.Add(this.buttonCancel); this.Controls.Add(this.buttonOK); - this.Controls.Add(this.checkBoxMsgCurrApp); this.Controls.Add(this.labelMsgApp); this.Controls.Add(this.buttonFindMsgApp); this.Controls.Add(this.textBoxMsgApp); @@ -225,6 +226,7 @@ this.Controls.Add(this.labelWParam); this.Controls.Add(this.labelMessage); this.MinimizeBox = false; + this.MinimumSize = new System.Drawing.Size(392, 212); this.Name = "MessageCommand"; this.ShowIcon = false; this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent; Modified: trunk/plugins/TV3ExtChannelChanger/Forms/MessageCommand.cs =================================================================== --- trunk/plugins/TV3ExtChannelChanger/Forms/MessageCommand.cs 2007-02-02 07:47:21 UTC (rev 79) +++ trunk/plugins/TV3ExtChannelChanger/Forms/MessageCommand.cs 2007-02-02 12:52:42 UTC (rev 80) @@ -90,6 +90,12 @@ numericUpDownMsg.Value = new decimal(Win32.WM_USER); } + private void checkBoxMsgCurrApp_CheckedChanged(object sender, EventArgs e) + { + textBoxMsgApp.Enabled = !checkBoxMsgCurrApp.Checked; + buttonFindMsgApp.Enabled = !checkBoxMsgCurrApp.Checked; + } + } } Modified: trunk/plugins/TV3MceBlaster/Forms/KeysCommand.Designer.cs =================================================================== --- trunk/plugins/TV3MceBlaster/Forms/KeysCommand.Designer.cs 2007-02-02 07:47:21 UTC (rev 79) +++ trunk/plugins/TV3MceBlaster/Forms/KeysCommand.Designer.cs 2007-02-02 12:52:42 UTC (rev 80) @@ -43,7 +43,7 @@ this.buttonCancel.Location = new System.Drawing.Point(264, 128); this.buttonCancel.Name = "buttonCancel"; this.buttonCancel.Size = new System.Drawing.Size(64, 24); - this.buttonCancel.TabIndex = 14; + this.buttonCancel.TabIndex = 3; this.buttonCancel.Text = "Cancel"; this.buttonCancel.UseVisualStyleBackColor = true; this.buttonCancel.Click += new System.EventHandler(this.buttonCancel_Click); @@ -54,7 +54,7 @@ this.buttonOK.Location = new System.Drawing.Point(192, 128); this.buttonOK.Name = "buttonOK"; this.buttonOK.Size = new System.Drawing.Size(64, 24); - this.buttonOK.TabIndex = 13; + this.buttonOK.TabIndex = 2; this.buttonOK.Text = "OK"; this.buttonOK.UseVisualStyleBackColor = true; this.buttonOK.Click += new System.EventHandler(this.buttonOK_Click); @@ -69,7 +69,7 @@ this.textBoxKeystrokes.Name = "textBoxKeystrokes"; this.textBoxKeystrokes.ScrollBars = System.Windows.Forms.ScrollBars.Vertical; this.textBoxKeystrokes.Size = new System.Drawing.Size(320, 96); - this.textBoxKeystrokes.TabIndex = 12; + this.textBoxKeystrokes.TabIndex = 1; // // labelKeystrokes // @@ -78,19 +78,22 @@ this.labelKeystrokes.Location = new System.Drawing.Point(8, 8); this.labelKeystrokes.Name = "labelKeystrokes"; this.labelKeystrokes.Size = new System.Drawing.Size(320, 16); - this.labelKeystrokes.TabIndex = 15; + this.labelKeystrokes.TabIndex = 0; this.labelKeystrokes.Text = "Keystrokes:"; // // KeysCommand // + this.AcceptButton = this.buttonOK; this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.ClientSize = new System.Drawing.Size(336, 160); + this.CancelButton = this.buttonCancel; + this.ClientSize = new System.Drawing.Size(336, 161); this.Controls.Add(this.labelKeystrokes); this.Controls.Add(this.buttonCancel); this.Controls.Add(this.buttonOK); this.Controls.Add(this.textBoxKeystrokes); this.MinimizeBox = false; + this.MinimumSize = new System.Drawing.Size(344, 188); this.Name = "KeysCommand"; this.ShowIcon = false; this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent; Modified: trunk/plugins/TV3MceBlaster/Forms/MessageCommand.Designer.cs =================================================================== --- trunk/plugins/TV3MceBlaster/Forms/MessageCommand.Designer.cs 2007-02-02 07:47:21 UTC (rev 79) +++ trunk/plugins/TV3MceBlaster/Forms/MessageCommand.Designer.cs 2007-02-02 12:52:42 UTC (rev 80) @@ -38,14 +38,14 @@ this.numericUpDownLParam = new System.Windows.Forms.NumericUpDown(); this.numericUpDownWParam = new System.Windows.Forms.NumericUpDown(); this.numericUpDownMsg = new System.Windows.Forms.NumericUpDown(); + this.contextMenuStripWM = new System.Windows.Forms.ContextMenuStrip(this.components); + this.wMAPPToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.wMUSERToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.labelLParam = new System.Windows.Forms.Label(); this.labelWParam = new System.Windows.Forms.Label(); this.labelMessage = new System.Windows.Forms.Label(); this.buttonCancel = new System.Windows.Forms.Button(); this.buttonOK = new System.Windows.Forms.Button(); - this.contextMenuStripWM = new System.Windows.Forms.ContextMenuStrip(this.components); - this.wMAPPToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); - this.wMUSERToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); ((System.ComponentModel.ISupportInitialize)(this.numericUpDownLParam)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.numericUpDownWParam)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.numericUpDownMsg)).BeginInit(); @@ -60,6 +60,7 @@ this.checkBoxMsgCurrApp.TabIndex = 3; this.checkBoxMsgCurrApp.Text = "Send to active window"; this.checkBoxMsgCurrApp.UseVisualStyleBackColor = true; + this.checkBoxMsgCurrApp.CheckedChanged += new System.EventHandler(this.checkBoxMsgCurrApp_CheckedChanged); // // labelMsgApp // @@ -133,6 +134,28 @@ this.numericUpDownMsg.TextAlign = System.Windows.Forms.HorizontalAlignment.Center; this.numericUpDownMsg.ThousandsSeparator = true; // + // contextMenuStripWM + // + this.contextMenuStripWM.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { + this.wMAPPToolStripMenuItem, + this.wMUSERToolStripMenuItem}); + this.contextMenuStripWM.Name = "contextMenuStripWM"; + this.contextMenuStripWM.Size = new System.Drawing.Size(136, 48); + // + // wMAPPToolStripMenuItem + // + this.wMAPPToolStripMenuItem.Name = "wMAPPToolStripMenuItem"; + this.wMAPPToolStripMenuItem.Size = new System.Drawing.Size(135, 22); + this.wMAPPToolStripMenuItem.Text = "WM_APP"; + this.wMAPPToolStripMenuItem.Click += new System.EventHandler(this.wMAPPToolStripMenuItem_Click); + // + // wMUSERToolStripMenuItem + // + this.wMUSERToolStripMenuItem.Name = "wMUSERToolStripMenuItem"; + this.wMUSERToolStripMenuItem.Size = new System.Drawing.Size(135, 22); + this.wMUSERToolStripMenuItem.Text = "WM_USER"; + this.wMUSERToolStripMenuItem.Click += new System.EventHandler(this.wMUSERToolStripMenuItem_Click); + // // labelLParam // this.labelLParam.Location = new System.Drawing.Point(8, 128); @@ -183,38 +206,16 @@ this.buttonOK.UseVisualStyleBackColor = true; this.buttonOK.Click += new System.EventHandler(this.buttonOK_Click); // - // contextMenuStripWM - // - this.contextMenuStripWM.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { - this.wMAPPToolStripMenuItem, - this.wMUSERToolStripMenuItem}); - this.contextMenuStripWM.Name = "contextMenuStripWM"; - this.contextMenuStripWM.Size = new System.Drawing.Size(136, 48); - // - // wMAPPToolStripMenuItem - // - this.wMAPPToolStripMenuItem.Name = "wMAPPToolStripMenuItem"; - this.wMAPPToolStripMenuItem.Size = new System.Drawing.Size(152, 22); - this.wMAPPToolStripMenuItem.Text = "WM_APP"; - this.wMAPPToolStripMenuItem.Click += new System.EventHandler(this.wMAPPToolStripMenuItem_Click); - // - // wMUSERToolStripMenuItem - // - this.wMUSERToolStripMenuItem.Name = "wMUSERToolStripMenuItem"; - this.wMUSERToolStripMenuItem.Size = new System.Drawing.Size(152, 22); - this.wMUSERToolStripMenuItem.Text = "WM_USER"; - this.wMUSERToolStripMenuItem.Click += new System.EventHandler(this.wMUSERToolStripMenuItem_Click); - // // MessageCommand // this.AcceptButton = this.buttonOK; this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.CancelButton = this.buttonCancel; - this.ClientSize = new System.Drawing.Size(384, 184); + this.ClientSize = new System.Drawing.Size(384, 185); + this.Controls.Add(this.checkBoxMsgCurrApp); this.Controls.Add(this.buttonCancel); this.Controls.Add(this.buttonOK); - this.Controls.Add(this.checkBoxMsgCurrApp); this.Controls.Add(this.labelMsgApp); this.Controls.Add(this.buttonFindMsgApp); this.Controls.Add(this.textBoxMsgApp); @@ -225,6 +226,7 @@ this.Controls.Add(this.labelWParam); this.Controls.Add(this.labelMessage); this.MinimizeBox = false; + this.MinimumSize = new System.Drawing.Size(392, 212); this.Name = "MessageCommand"; this.ShowIcon = false; this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent; Modified: trunk/plugins/TV3MceBlaster/Forms/MessageCommand.cs =================================================================== --- trunk/plugins/TV3MceBlaster/Forms/MessageCommand.cs 2007-02-02 07:47:21 UTC (rev 79) +++ trunk/plugins/TV3MceBlaster/Forms/MessageCommand.cs 2007-02-02 12:52:42 UTC (rev 80) @@ -90,6 +90,12 @@ numericUpDownMsg.Value = new decimal(Win32.WM_USER); } + private void checkBoxMsgCurrApp_CheckedChanged(object sender, EventArgs e) + { + textBoxMsgApp.Enabled = !checkBoxMsgCurrApp.Checked; + buttonFindMsgApp.Enabled = !checkBoxMsgCurrApp.Checked; + } + } } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |